shithub: aubio

Download patch

ref: e126e655330093798522ee10ab2b80d2ac55403d
parent: d194d8ca7f847d33bb9b1cb9eb2ead1e2c203c1e
author: Paul Brossier <piem@piem.org>
date: Mon Oct 29 11:36:07 EDT 2018

[py] [cut] add option --create-first

--- a/python/lib/aubio/cmd.py
+++ b/python/lib/aubio/cmd.py
@@ -247,6 +247,9 @@
                 metavar = "<slices>",
                 action = "store", dest = "cut_until_nslices", default = None,
                 help="how many extra slices should be added at the end of each slice")
+        self.add_argument("--create-first",
+                action = "store_true", dest = "create_first", default = False,
+                help="always include first slice")
 
 # some utilities
 
--- a/python/lib/aubio/cut.py
+++ b/python/lib/aubio/cut.py
@@ -150,7 +150,8 @@
         slice_source_at_stamps(options.source_uri,
                 timestamps, timestamps_end = timestamps_end,
                 output_dir = options.output_directory,
-                samplerate = options.samplerate)
+                samplerate = options.samplerate,
+                create_first = options.create_first)
 
 def main():
     parser = aubio_cut_parser()