Changeset 144aff7 for examples


Ignore:
Timestamp:
Jul 27, 2006, 10:37:32 AM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
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
Message:

floor, not FLOOR in examples, only inst_headers for user doc
floor, not FLOOR in examples, only inst_headers for user doc

Patches applied:

Location:
examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    r26bf968 r144aff7  
    6767                              send_noteon(curnote,0);
    6868                              /* get and send new one */
    69                               send_noteon(pitch,127+(int)FLOOR(curlevel));
     69                              send_noteon(pitch,127+(int)floor(curlevel));
    7070                              curnote = pitch;
    7171                      }
     
    8787                              /* get and send new one */
    8888                              if (curnote>45){
    89                                       send_noteon(curnote,127+(int)FLOOR(curlevel));
     89                                      send_noteon(curnote,127+(int)floor(curlevel));
    9090                              }
    9191                      }
  • examples/utils.c

    r26bf968 r144aff7  
    406406void send_noteon(int pitch, int velo)
    407407{
    408     smpl_t mpitch = (FLOOR)(aubio_freqtomidi(pitch)+.5);
     408    smpl_t mpitch = floor(aubio_freqtomidi(pitch)+.5);
    409409    /* we should check if we use midi here, not jack */
    410410#if ALSA_SUPPORT
Note: See TracChangeset for help on using the changeset viewer.