Changeset 41b985f for python/scripts/aubiocut
- Timestamp:
- Mar 12, 2017, 11:26:24 AM (8 years ago)
- Branches:
- sampler
- Children:
- bde49c4a
- Parents:
- 71f2e5f (diff), 67b6618 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/scripts/aubiocut
r71f2e5f r41b985f 6 6 7 7 import sys 8 #from aubio.task import *9 8 10 9 usage = "usage: %s [options] -i soundfile" % sys.argv[0] … … 118 117 action = "store", dest = "cut_until_nsamples", default = None, 119 118 help="how many extra samples should be added at the end of each slice") 119 parser.add_option("--cut-every-nslices", type = int, 120 metavar = "<samples>", 121 action = "store", dest = "cut_every_nslices", default = None, 122 help="how many slices should be groupped together at each cut") 120 123 parser.add_option("--cut-until-nslices", type = int, 121 124 metavar = "<slices>", … … 188 191 from aubio.slicing import slice_source_at_stamps 189 192 timestamps_end = None 193 if options.cut_every_nslices: 194 timestamps = timestamps[::options.cut_every_nslices] 195 nstamps = len(timestamps) 190 196 if options.cut_until_nslices and options.cut_until_nsamples: 191 197 print ("warning: using cut_until_nslices, but cut_until_nsamples is set")
Note: See TracChangeset
for help on using the changeset viewer.