History

python/lib/aubio/cmd.py: split buffer and hop sizes

Paul Brossier committed 9 years ago

Commit 67ee29f1 parent 965adee1 file · +6 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/aubio/cmd.py+6−0
@@ -118,10 +118,16 @@ def parser_add_verbose_help(parser): · 117 unmodified lines
118118 help="be quiet")
119119
120120 def parser_add_buf_hop_size(parser, buf_size=512, hop_size=256):
121+ parser_add_buf_size(parser, buf_size=buf_size)
122+ parser_add_hop_size(parser, hop_size=hop_size)
123+
124+def parser_add_buf_size(parser, buf_size=512):
121125 parser.add_argument("-B","--bufsize",
122126 action="store", dest="buf_size", default=buf_size,
123127 metavar = "<size>", type=int,
124128 help="buffer size [default=%d]" % buf_size)
129+
130+def parser_add_hop_size(parser, hop_size=256):
125131 parser.add_argument("-H","--hopsize",
126132 metavar = "<size>", type=int,
127133 action="store", dest="hop_size", default=hop_size,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t