Changeset aee840b for python/lib/aubio


Ignore:
Timestamp:
Jan 12, 2014, 3:33:07 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
6f27719
Parents:
8203ae5
Message:

python/lib/aubio/slicing.py: error checking, add more tests, use get_default_sound

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/slicing.py

    r8203ae5 raee840b  
    66        samplerate = 0,
    77        hopsize = 256):
     8
     9    if timestamps == None or len(timestamps) == 0:
     10        raise ValueError ("no timestamps given")
     11
     12    if timestamps_end != None and len(timestamps_end) != len(timestamps):
     13        raise ValueError ("len(timestamps_end) != len(timestamps)")
    814
    915    source_base_name, source_ext = os.path.splitext(os.path.basename(source_file))
Note: See TracChangeset for help on using the changeset viewer.