Changeset 376946a for src/onset/onset.c


Ignore:
Timestamp:
Mar 15, 2013, 8:41:02 PM (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:
f5e0a54
Parents:
9778d9a
Message:

src/onset/onset.c: quick fix to get very first frame of file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    r9778d9a r376946a  
    6666    }
    6767  } else {
     68    if (wasonset == -1 && aubio_silence_detection(input, o->silence) == 0) {
     69      //AUBIO_MSG("beginning of file is not silent, marking as onset\n",
     70      //  wasonset, aubio_silence_detection(input, o->silence));
     71      isonset = 4;
     72      wasonset = 0;
     73    }
    6874    wasonset++;
    6975  }
     
    108114  o->silence   = -70;
    109115  o->wasonset  = new_fvec(1);
     116  o->wasonset->data[0] = -1.;
    110117  o->samplerate = samplerate;
    111118  o->hop_size = hop_size;
Note: See TracChangeset for help on using the changeset viewer.