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
118 help="be quiet")118 help="be quiet")
119 119
120def parser_add_buf_hop_size(parser, buf_size=512, hop_size=256):120def 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
124def parser_add_buf_size(parser, buf_size=512):
121 parser.add_argument("-B","--bufsize",125 parser.add_argument("-B","--bufsize",
122 action="store", dest="buf_size", default=buf_size,126 action="store", dest="buf_size", default=buf_size,
123 metavar = "<size>", type=int,127 metavar = "<size>", type=int,
124 help="buffer size [default=%d]" % buf_size)128 help="buffer size [default=%d]" % buf_size)
129
130def parser_add_hop_size(parser, hop_size=256):
125 parser.add_argument("-H","--hopsize",131 parser.add_argument("-H","--hopsize",
126 metavar = "<size>", type=int,132 metavar = "<size>", type=int,
127 action="store", dest="hop_size", default=hop_size,133 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