History

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

Paul Brossier committed 8 years ago

Commit e126e651 parent d194d8c2 files · +5 −1Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/lib/aubio/cmd.py +3 −0
  2. python/lib/aubio/cut.py +2 −1
python/lib/aubio/cmd.py+3−0
@@ -247,6 +247,9 @@ class AubioArgumentParser(argparse.ArgumentParser): · 246 unmodified lines
247247 metavar = "<slices>",
248248 action = "store", dest = "cut_until_nslices", default = None,
249249 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")
250253
251254 # some utilities
252255
python/lib/aubio/cut.py+2−1
@@ -150,7 +150,8 @@ def _cut_slice(options, timestamps): · 149 unmodified lines
150150 slice_source_at_stamps(options.source_uri,
151151 timestamps, timestamps_end = timestamps_end,
152152 output_dir = options.output_directory,
153− samplerate = options.samplerate)
153+ samplerate = options.samplerate,
154+ create_first = options.create_first)
154155
155156 def main():
156157 parser = aubio_cut_parser()

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