Changeset 21234ee for examples/aubionotes.c
- Timestamp:
- Dec 18, 2013, 8:07:27 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:
- 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/aubionotes.c
r1573b16 r21234ee 52 52 53 53 aubio_pitch_do (pitch, ibuf, pitch_obuf); 54 smpl_t new_pitch = fvec_ read_sample(pitch_obuf, 0);54 smpl_t new_pitch = fvec_get_sample(pitch_obuf, 0); 55 55 if(median){ 56 56 note_append(note_buffer, new_pitch); … … 59 59 /* curlevel is negatif or 1 if silence */ 60 60 smpl_t curlevel = aubio_level_detection(ibuf, silence_threshold); 61 if (fvec_ read_sample(onset, 0)) {61 if (fvec_get_sample(onset, 0)) { 62 62 /* test for silence */ 63 63 if (curlevel == 1.) {
Note: See TracChangeset
for help on using the changeset viewer.