shithub: aubio

Download patch

ref: a72f3f19a62e279673b902525e5f4340f0c4c139
parent: 316092e6f7a3f97800f4bf88f92f8d26627ff742
author: Paul Brossier <piem@piem.org>
date: Wed Oct 7 19:24:54 EDT 2009

src/onset/onset.c: rename aubio_onset to aubio_onset_do

--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -40,7 +40,7 @@
 };
 
 /* execute onset detection function on iput buffer */
-void aubio_onset(aubio_onset_t *o, fvec_t * input, fvec_t * onset)
+void aubio_onset_do (aubio_onset_t *o, fvec_t * input, fvec_t * onset)
 {
   uint_t isonset = 0;
   uint_t wasonset = o->wasonset;
--- a/src/onset/onset.h
+++ b/src/onset/onset.h
@@ -24,11 +24,11 @@
   The following routines compute the onset detection function and detect peaks
   in these functions. When onsets are found above a given silence threshold,
   and after a minimum inter-onset interval, the output vector returned by
-  aubio_onset is filled with 1. Otherwise, the output vector remains 0.
+  aubio_onset_do is filled with 1. Otherwise, the output vector remains 0.
 
   The peak-picking threshold, the silence threshold, and the minimum
-  inter-onset interval can be adjusted during the execution of the aubio_onset
-  routine using the corresponding functions.
+  inter-onset interval can be adjusted during the execution of the
+  aubio_onset_do routine using the corresponding functions.
 
 */
  
@@ -61,7 +61,7 @@
   \param onset output vector, 1 if onset is found, 0 otherwise
 
 */
-void aubio_onset(aubio_onset_t *o, fvec_t * input, fvec_t * onset);
+void aubio_onset_do (aubio_onset_t *o, fvec_t * input, fvec_t * onset);
 
 /** set onset detection silence threshold
 
--- a/tests/src/test-onset.c
+++ b/tests/src/test-onset.c
@@ -10,7 +10,7 @@
         uint_t i = 0;
 
         while (i < 10) {
-          aubio_onset(onset,in,out);
+          aubio_onset_do (onset,in,out);
           i++;
         };