History

python/scripts/aubiocut: sync option names with examples/

Paul Brossier committed 12 years ago

Commit 49e40cc1 parent 074b41b1 file · +3 −3Browse files

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

Unified · Split

python/scripts/aubiocut+3−3
@@ -15,7 +15,7 @@ def parse_args(): · 14 unmodified lines
1515 parser = OptionParser(usage=usage)
1616 parser.add_option("-i", "--input", action = "store", dest = "source_file",
1717 help="input sound file to analyse", metavar = "<source_file>")
18− parser.add_option("-m","--method",
18+ parser.add_option("-O","--onset-method",
1919 action="store", dest="onset_method", default='default',
2020 metavar = "<onset_method>",
2121 help="onset detection method [default=default] \
@@ -34,7 +34,7 @@ def parse_args(): · 12 unmodified lines
3434 help="silence threshold [default=-70]")
3535 """
3636 # algorithm parameters
37− parser.add_option("--samplerate",
37+ parser.add_option("-r", "--samplerate",
3838 metavar = "<freq>", type='int',
3939 action="store", dest="samplerate", default=0,
4040 help="samplerate at which the file should be represented")
@@ -46,7 +46,7 @@ def parse_args(): · 5 unmodified lines
4646 metavar = "<size>", type='int',
4747 action="store", dest="hopsize", default=256,
4848 help="overlap size [default=256]")
49− parser.add_option("-t","--threshold",
49+ parser.add_option("-t","--onset-threshold",
5050 metavar = "<value>", type="float",
5151 action="store", dest="threshold", default=0.3,
5252 help="onset peak picking threshold [default=0.3]")

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