Changeset 376946a


Ignore:
Timestamp:
Mar 15, 2013, 8:41:02 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.