Changeset 9562f08 for examples/utils.c
- Timestamp:
- Jul 22, 2016, 9:30:31 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 65fc06f
- Parents:
- f280ebd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
rf280ebd r9562f08 182 182 183 183 void 184 send_noteon (int pitch, int velo) 185 { 186 smpl_t mpitch = floor (aubio_freqtomidi (pitch) + .5); 184 send_noteon (smpl_t pitch, smpl_t velo) 185 { 187 186 #ifdef HAVE_JACK 188 187 jack_midi_event_t ev; … … 192 191 if (usejack) { 193 192 ev.buffer[2] = velo; 194 ev.buffer[1] = mpitch;193 ev.buffer[1] = pitch; 195 194 if (velo == 0) { 196 195 ev.buffer[0] = 0x80; /* note off */ … … 205 204 outmsg ("\n"); 206 205 } else { 207 outmsg ("%f\t", mpitch);206 outmsg ("%f\t", pitch); 208 207 print_time (blocks * hop_size); 209 208 outmsg ("\t");
Note: See TracChangeset
for help on using the changeset viewer.