ref: 67ee29f4f5ea5f2611056e927756e370f6537c25
parent: 965adee4bf9ec7b241b59b53e0e26cd2b02d0cb6
author: Paul Brossier <piem@piem.org>
date: Tue Sep 12 12:47:42 EDT 2017
python/lib/aubio/cmd.py: split buffer and hop sizes
--- a/python/lib/aubio/cmd.py
+++ b/python/lib/aubio/cmd.py
@@ -118,10 +118,16 @@
help="be quiet")
def parser_add_buf_hop_size(parser, buf_size=512, hop_size=256):
+ parser_add_buf_size(parser, buf_size=buf_size)
+ parser_add_hop_size(parser, hop_size=hop_size)
+
+def parser_add_buf_size(parser, buf_size=512):
parser.add_argument("-B","--bufsize",
action="store", dest="buf_size", default=buf_size,
metavar = "<size>", type=int,
help="buffer size [default=%d]" % buf_size)
+
+def parser_add_hop_size(parser, hop_size=256):
parser.add_argument("-H","--hopsize",
metavar = "<size>", type=int,
action="store", dest="hop_size", default=hop_size,