Ignore:
Timestamp:
Mar 12, 2017, 11:26:24 AM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
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.
Message:

Merge 'origin/master' into sampler

Conflicts:

.travis.yml
Makefile
examples/aubionotes.c
examples/parse_args.h
python/demos/demo_timestretch_online.py
python/lib/moresetuptools.py
python/tests/test_source.py
setup.py
src/io/source.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/scripts/aubiocut

    r71f2e5f r41b985f  
    66
    77import sys
    8 #from aubio.task import *
    98
    109usage = "usage: %s [options] -i soundfile" % sys.argv[0]
     
    118117            action = "store", dest = "cut_until_nsamples", default = None,
    119118            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")
    120123    parser.add_option("--cut-until-nslices", type = int,
    121124            metavar = "<slices>",
     
    188191        from aubio.slicing import slice_source_at_stamps
    189192        timestamps_end = None
     193        if options.cut_every_nslices:
     194            timestamps = timestamps[::options.cut_every_nslices]
     195            nstamps = len(timestamps)
    190196        if options.cut_until_nslices and options.cut_until_nsamples:
    191197            print ("warning: using cut_until_nslices, but cut_until_nsamples is set")
Note: See TracChangeset for help on using the changeset viewer.