Changeset 0e0a049 for examples/aubioonset.c
- Timestamp:
- Oct 25, 2009, 9:33:24 PM (14 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- b616ffe
- Parents:
- a17e8c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubioonset.c
ra17e8c9 r0e0a049 41 41 aubio_onset_do (o, ibuf, onset); 42 42 if (fvec_read_sample(onset, 0, 0)) { 43 for (pos = 0; pos < overlap_size; pos++){ 44 obuf->data[0][pos] = woodblock->data[0][pos]; 45 } 43 fvec_copy (woodblock, obuf); 46 44 } else { 47 for (pos = 0; pos < overlap_size; pos++) { 48 obuf->data[0][pos] = 0.; 49 } 45 fvec_zeros (obuf); 50 46 } 51 47 /* end of block loop */
Note: See TracChangeset
for help on using the changeset viewer.