Showing the changes to python/scripts (1 of 1 file). Show all
Unified · Split
| @@ -15,7 +15,7 @@ def parse_args(): · 14 unmodified lines | ||
| 15 | 15 | parser = OptionParser(usage=usage) |
| 16 | 16 | parser.add_option("-i", "--input", action = "store", dest = "source_file", |
| 17 | 17 | help="input sound file to analyse", metavar = "<source_file>") |
| 18 | − parser.add_option("-m","--method", | |
| 18 | + parser.add_option("-O","--onset-method", | |
| 19 | 19 | action="store", dest="onset_method", default='default', |
| 20 | 20 | metavar = "<onset_method>", |
| 21 | 21 | help="onset detection method [default=default] \ |
| @@ -34,7 +34,7 @@ def parse_args(): · 12 unmodified lines | ||
| 34 | 34 | help="silence threshold [default=-70]") |
| 35 | 35 | """ |
| 36 | 36 | # algorithm parameters |
| 37 | − parser.add_option("--samplerate", | |
| 37 | + parser.add_option("-r", "--samplerate", | |
| 38 | 38 | metavar = "<freq>", type='int', |
| 39 | 39 | action="store", dest="samplerate", default=0, |
| 40 | 40 | help="samplerate at which the file should be represented") |
| @@ -46,7 +46,7 @@ def parse_args(): · 5 unmodified lines | ||
| 46 | 46 | metavar = "<size>", type='int', |
| 47 | 47 | action="store", dest="hopsize", default=256, |
| 48 | 48 | help="overlap size [default=256]") |
| 49 | − parser.add_option("-t","--threshold", | |
| 49 | + parser.add_option("-t","--onset-threshold", | |
| 50 | 50 | metavar = "<value>", type="float", |
| 51 | 51 | action="store", dest="threshold", default=0.3, |
| 52 | 52 | help="onset peak picking threshold [default=0.3]") |