Changeset 2bf530e0


Ignore:
Timestamp:
Apr 16, 2017, 11:37:54 AM (8 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
Children:
a5004903
Parents:
8f1b354
Message:

python/lib/aubio/cut.py: pass samplerate to onset or tempo

File:
1 edited

Legend:

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

    r8f1b354 r2bf530e0  
    154154
    155155    if options.beat:
    156         o = tempo(options.onset_method, bufsize, hopsize)
     156        o = tempo(options.onset_method, bufsize, hopsize, samplerate=samplerate)
    157157    else:
    158         o = onset(options.onset_method, bufsize, hopsize)
     158        o = onset(options.onset_method, bufsize, hopsize, samplerate=samplerate)
    159159        if options.minioi:
    160160            if options.minioi.endswith('ms'):
Note: See TracChangeset for help on using the changeset viewer.