Changeset 21234ee for examples/aubiotrack.c
- Timestamp:
- Dec 18, 2013, 8:07:27 AM (11 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:
- 6465d7f
- Parents:
- 1573b16 (diff), c3c6305 (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/aubiotrack.c
r1573b16 r21234ee 29 29 fvec_t * tempo_out; 30 30 smpl_t is_beat = 0; 31 smpl_t is_onset = 0;32 31 uint_t is_silence = 0.; 33 32 34 33 void process_block(fvec_t * ibuf, fvec_t *obuf) { 35 34 aubio_tempo_do (tempo, ibuf, tempo_out); 36 is_beat = fvec_read_sample (tempo_out, 0); 37 is_onset = fvec_read_sample (tempo_out, 1); 35 is_beat = fvec_get_sample (tempo_out, 0); 38 36 if (silence_threshold != -90.) 39 37 is_silence = aubio_silence_detection(ibuf, silence_threshold); … … 54 52 outmsg("%f\n", aubio_tempo_get_last_s(tempo) ); 55 53 } 56 //if ( is_onset )57 // outmsg(" \t \t%f\n",(blocks)*hop_size/(float)samplerate);58 54 } 59 55
Note: See TracChangeset
for help on using the changeset viewer.