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
247 metavar = "<slices>",247 metavar = "<slices>",
248 action = "store", dest = "cut_until_nslices", default = None,248 action = "store", dest = "cut_until_nslices", default = None,
249 help="how many extra slices should be added at the end of each slice")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# some utilities254# some utilities
252 255
python/lib/aubio/cut.py+2−1
@@ -150,7 +150,8 @@ def _cut_slice(options, timestamps): · 149 unmodified lines
150 slice_source_at_stamps(options.source_uri,150 slice_source_at_stamps(options.source_uri,
151 timestamps, timestamps_end = timestamps_end,151 timestamps, timestamps_end = timestamps_end,
152 output_dir = options.output_directory,152 output_dir = options.output_directory,
153 samplerate = options.samplerate)153 samplerate = options.samplerate,
154 create_first = options.create_first)
154 155
155def main():156def main():
156 parser = aubio_cut_parser()157 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