- Timestamp:
- Jul 27, 2006, 10:37:32 AM (18 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:
- 36dfbc6
- Parents:
- 26bf968
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r26bf968 r144aff7 67 67 send_noteon(curnote,0); 68 68 /* get and send new one */ 69 send_noteon(pitch,127+(int) FLOOR(curlevel));69 send_noteon(pitch,127+(int)floor(curlevel)); 70 70 curnote = pitch; 71 71 } … … 87 87 /* get and send new one */ 88 88 if (curnote>45){ 89 send_noteon(curnote,127+(int) FLOOR(curlevel));89 send_noteon(curnote,127+(int)floor(curlevel)); 90 90 } 91 91 } -
examples/utils.c
r26bf968 r144aff7 406 406 void send_noteon(int pitch, int velo) 407 407 { 408 smpl_t mpitch = (FLOOR)(aubio_freqtomidi(pitch)+.5);408 smpl_t mpitch = floor(aubio_freqtomidi(pitch)+.5); 409 409 /* we should check if we use midi here, not jack */ 410 410 #if ALSA_SUPPORT
Note: See TracChangeset
for help on using the changeset viewer.