Changeset be6e8e6
- Timestamp:
- Aug 13, 2015, 6:40:11 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
- Children:
- 192fa6a
- Parents:
- 299dbfd (diff), 763a7f1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onset.c
r299dbfd rbe6e8e6 81 81 } 82 82 } else { 83 // we are at the beginning of the file, and we don't find silence 84 if (o->total_frames <= o->delay && o->last_onset < o ->minioi && aubio_silence_detection(input, o->silence) == 0) { 85 //AUBIO_DBG ("beginning of file is not silent, marking as onset\n"); 86 isonset = o->delay / o->hop_size; 87 o->last_onset = o->delay; 83 // we are at the beginning of the file 84 if (o->total_frames <= o->delay) { 85 // and we don't find silence 86 if (aubio_silence_detection(input, o->silence) == 0) { 87 uint_t new_onset = o->total_frames; 88 if (o->total_frames == 0 || o->last_onset + o->minioi < new_onset) { 89 isonset = o->delay / o->hop_size; 90 o->last_onset = o->total_frames + o->delay; 91 } 92 } 88 93 } 89 94 }
Note: See TracChangeset
for help on using the changeset viewer.