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