Changeset d4791e5 for examples/aubionotes.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/aubionotes.c
r89e9e71 rd4791e5 46 46 uint_t get_note (fvec_t * note_buffer, fvec_t * note_buffer2); 47 47 48 static void 49 process_block(fvec_t *ibuf, fvec_t *obuf) { 48 void process_block (fvec_t *ibuf, fvec_t *obuf) 49 { 50 smpl_t new_pitch, curlevel; 50 51 fvec_zeros(obuf); 51 52 aubio_onset_do(o, ibuf, onset); 52 53 53 54 aubio_pitch_do (pitch, ibuf, pitch_obuf); 54 smpl_tnew_pitch = fvec_get_sample(pitch_obuf, 0);55 new_pitch = fvec_get_sample(pitch_obuf, 0); 55 56 if(median){ 56 57 note_append(note_buffer, new_pitch); … … 58 59 59 60 /* curlevel is negatif or 1 if silence */ 60 smpl_tcurlevel = aubio_level_detection(ibuf, silence_threshold);61 curlevel = aubio_level_detection(ibuf, silence_threshold); 61 62 if (fvec_get_sample(onset, 0)) { 62 63 /* test for silence */ … … 95 96 } 96 97 97 static void 98 process_print (void){98 void process_print (void) 99 { 99 100 //if (verbose) outmsg("%f\n",pitch_obuf->data[0]); 100 101 }
Note: See TracChangeset
for help on using the changeset viewer.