Changeset 28c066e for src/onset


Ignore:
Timestamp:
Aug 24, 2014, 4:32:58 PM (10 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:
2722dc7
Parents:
5a2a6c6
Message:

src/onset/onset.c: avoid doubled onset at start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    r5a2a6c6 r28c066e  
    6969  } else {
    7070    // we are at the beginning of the file, and we don't find silence
    71     if (o->total_frames == 0 && aubio_silence_detection(input, o->silence) == 0) {
     71    if (o->total_frames <= o->delay && o->last_onset < o ->minioi && aubio_silence_detection(input, o->silence) == 0) {
    7272      //AUBIO_DBG ("beginning of file is not silent, marking as onset\n");
    7373      isonset = o->delay / o->hop_size;
Note: See TracChangeset for help on using the changeset viewer.