Showing the changes to python/lib (2 of 2 files). Show all
Unified · Split
| @@ -247,6 +247,9 @@ class AubioArgumentParser(argparse.ArgumentParser): · 246 unmodified lines | ||
| 247 | 247 | metavar = "<slices>", |
| 248 | 248 | action = "store", dest = "cut_until_nslices", default = None, |
| 249 | 249 | help="how many extra slices should be added at the end of each slice") |
| 250 | + self.add_argument("--create-first", | |
| 251 | + action = "store_true", dest = "create_first", default = False, | |
| 252 | + help="always include first slice") | |
| 250 | 253 | |
| 251 | 254 | # some utilities |
| 252 | 255 | |
| @@ -150,7 +150,8 @@ def _cut_slice(options, timestamps): · 149 unmodified lines | ||
| 150 | 150 | slice_source_at_stamps(options.source_uri, |
| 151 | 151 | timestamps, timestamps_end = timestamps_end, |
| 152 | 152 | output_dir = options.output_directory, |
| 153 | − samplerate = options.samplerate) | |
| 153 | + samplerate = options.samplerate, | |
| 154 | + create_first = options.create_first) | |
| 154 | 155 | |
| 155 | 156 | def main(): |
| 156 | 157 | parser = aubio_cut_parser() |