shithub: aubio

Download patch

ref: 144aff72f100cb32f43a0c62e302ca4f94078f64
parent: 26bf9686258e02921c593a53dfee4192331d2d64
author: Paul Brossier <piem@altern.org>
date: Thu Jul 27 04:37:32 EDT 2006

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

Patches applied:

 * piem@altern.org--aubio-fraise/aubio--mainline--0.3.2--patch-9
   use floor not FLOOR in aubionotes and utils


--- a/doc/user.cfg
+++ b/doc/user.cfg
@@ -468,7 +468,7 @@
 # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx 
 # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py
 
-FILE_PATTERNS          = 
+FILE_PATTERNS          = *.h
 
 # The RECURSIVE tag can be used to turn specify whether or not subdirectories 
 # should be searched for input files as well. Possible values are YES and NO. 
@@ -480,7 +480,7 @@
 # excluded from the INPUT source files. This way you can easily exclude a 
 # subdirectory from a directory tree whose root is specified with the INPUT tag.
 
-EXCLUDE                = 
+EXCLUDE                = ../src/aubio_priv.h
 
 # The EXCLUDE_SYMLINKS tag can be used select whether or not files or 
 # directories that are symbolic links (a Unix filesystem feature) are excluded 
--- a/examples/aubionotes.c
+++ b/examples/aubionotes.c
@@ -66,7 +66,7 @@
                               /* kill old note */
                               send_noteon(curnote,0);
                               /* get and send new one */
-                              send_noteon(pitch,127+(int)FLOOR(curlevel));
+                              send_noteon(pitch,127+(int)floor(curlevel));
                               curnote = pitch;
                       }
 
@@ -86,7 +86,7 @@
                               curnote = newnote;
                               /* get and send new one */
                               if (curnote>45){
-                                      send_noteon(curnote,127+(int)FLOOR(curlevel));
+                                      send_noteon(curnote,127+(int)floor(curlevel));
                               }
                       }
               } // if median
--- a/examples/utils.c
+++ b/examples/utils.c
@@ -405,7 +405,7 @@
 
 void send_noteon(int pitch, int velo)
 {
-    smpl_t mpitch = (FLOOR)(aubio_freqtomidi(pitch)+.5);
+    smpl_t mpitch = floor(aubio_freqtomidi(pitch)+.5);
     /* we should check if we use midi here, not jack */
 #if ALSA_SUPPORT
     if (usejack) {