shithub: aubio

Download patch

ref: 66e69340e6b60bd51c09ffddcd2e166373d18374
parent: 956e113b4f35b63a4f3374b30a2360af5028647c
author: Paul Brossier <piem@piem.org>
date: Wed Oct 3 10:31:34 EDT 2012

interfaces/python/demo_sink.py: fix number of arguments

--- a/interfaces/python/demo_sink.py
+++ b/interfaces/python/demo_sink.py
@@ -4,7 +4,7 @@
 from aubio import source, sink
 
 if __name__ == '__main__':
-  if len(sys.argv) < 2:
+  if len(sys.argv) < 3:
     print 'usage: %s <inputfile> <outputfile>' % sys.argv[0]
     sys.exit(1)
   f = source(sys.argv[1], 8000, 256)