Changeset d4791e5 for examples/aubioonset.c
- Timestamp:
- Jan 3, 2014, 12:47:22 AM (10 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:
- 2e01060
- Parents:
- 89e9e71 (diff), 4fe62ba (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
-
examples/aubioonset.c
r89e9e71 rd4791e5 30 30 smpl_t is_onset; 31 31 32 void 33 process_block(fvec_t *ibuf, fvec_t *obuf) { 34 fvec_zeros(obuf); 32 void process_block(fvec_t *ibuf, fvec_t *obuf) 33 { 35 34 aubio_onset_do (o, ibuf, onset); 36 35 is_onset = fvec_get_sample(onset, 0); 36 if ( !usejack && ! sink_uri ) return; 37 fvec_zeros(obuf); 37 38 if ( is_onset ) { 38 39 aubio_wavetable_play ( wavetable ); … … 46 47 } 47 48 48 void 49 process_print (void) 49 void process_print (void) 50 50 { 51 51 if ( is_onset ) {
Note: See TracChangeset
for help on using the changeset viewer.