Changeset 6c85b3a
- Timestamp:
- Dec 17, 2016, 12:16:59 PM (8 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, sampler, yinfft+
- Children:
- ef55aa0
- Parents:
- 0b6a8a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r0b6a8a8 r6c85b3a 35 35 // did we get a note off? 36 36 if (obuf->data[2] != 0) { 37 lastmidi = aubio_freqtomidi (obuf->data[2]) + .5;37 lastmidi = obuf->data[2]; 38 38 send_noteon(lastmidi, 0); 39 39 } 40 40 // did we get a note on? 41 41 if (obuf->data[0] != 0) { 42 lastmidi = aubio_freqtomidi (obuf->data[0]) + .5;42 lastmidi = obuf->data[0]; 43 43 send_noteon(lastmidi, obuf->data[1]); 44 44 } … … 71 71 72 72 if (onset_minioi != 0.) { 73 errmsg ("warning: onset minioio not supported yet\n"); 74 //aubio_onset_set_minioi_ms(aubio_notes_get_aubio_onset(o), onset_minioi); 73 aubio_notes_set_minioi_ms(notes, onset_minioi); 75 74 } 76 75 if (onset_threshold != 0.) { … … 87 86 examples_common_process((aubio_process_func_t)process_block, process_print); 88 87 89 // send a last note off 90 if ( usejack) {88 // send a last note off if required 89 if (lastmidi) { 91 90 send_noteon (lastmidi, 0); 92 91 }
Note: See TracChangeset
for help on using the changeset viewer.