From: Paul Brossier Date: Tue, 12 Sep 2017 14:47:42 +0000 (+0200) Subject: python/lib/aubio/cmd.py: split buffer and hop sizes X-Git-Tag: 0.4.6~42 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=67ee29f4f5ea5f2611056e927756e370f6537c25;p=aubio.git python/lib/aubio/cmd.py: split buffer and hop sizes --- diff --git a/python/lib/aubio/cmd.py b/python/lib/aubio/cmd.py index 7d9d0c90..ce84c67e 100644 --- a/python/lib/aubio/cmd.py +++ b/python/lib/aubio/cmd.py @@ -118,10 +118,16 @@ def parser_add_verbose_help(parser): 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 = "", type=int, help="buffer size [default=%d]" % buf_size) + +def parser_add_hop_size(parser, hop_size=256): parser.add_argument("-H","--hopsize", metavar = "", type=int, action="store", dest="hop_size", default=hop_size,