shithub: aubio

Download patch

ref: 5bf23f7a217ad3d4d75b31560bddeccd796e5101
parent: a808d05d758e652bc418fb0e77096dd67839257a
author: Paul Brossier <[email protected]>
date: Wed Oct 7 18:34:07 EDT 2009

src/tempo/tempo.{c,h}: rename aubio_tempo to aubio_tempo_do

--- a/examples/aubiotrack.c
+++ b/examples/aubiotrack.c
@@ -41,7 +41,7 @@
     /*time for fft*/
     if (pos == overlap_size-1) {         
       /* block loop */
-      aubio_tempo(bt,ibuf,out);
+      aubio_tempo_do (bt,ibuf,out);
       if (out->data[0][0]>=1) 
         istactus = out->data[0][0];
       else 
--- a/plugins/puredata/aubiotempo~.c
+++ b/plugins/puredata/aubiotempo~.c
@@ -43,7 +43,7 @@
     /*time for fft*/
     if (x->pos == x->hopsize-1) {         
       /* block loop */
-      aubio_tempo (x->t, x->vec, x->output);
+      aubio_tempo_do (x->t, x->vec, x->output);
       if (x->output->data[0][0]) {
         outlet_bang(x->tempobang);
       }
--- a/src/tempo/tempo.c
+++ b/src/tempo/tempo.c
@@ -45,7 +45,7 @@
 };
 
 /* execute tempo detection function on iput buffer */
-void aubio_tempo(aubio_tempo_t *o, fvec_t * input, fvec_t * tempo)
+void aubio_tempo_do(aubio_tempo_t *o, fvec_t * input, fvec_t * tempo)
 {
   uint_t i;
   uint_t winlen = o->winlen;
--- a/src/tempo/tempo.h
+++ b/src/tempo/tempo.h
@@ -41,7 +41,7 @@
     uint_t buf_size, uint_t hop_size, uint_t channels);
 
 /** execute tempo detection */
-void aubio_tempo(aubio_tempo_t *o, fvec_t * input, fvec_t * tempo);
+void aubio_tempo_do (aubio_tempo_t *o, fvec_t * input, fvec_t * tempo);
 
 /** set tempo detection silence threshold  */
 void aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
--- a/tests/src/test-tempo.c
+++ b/tests/src/test-tempo.c
@@ -13,7 +13,7 @@
         smpl_t curtempo, curtempoconf;
 
         while (i < 1000) {
-          aubio_tempo(o,in,out);
+          aubio_tempo_do(o,in,out);
           curtempo = aubio_tempo_get_bpm(o);
           if (curtempo != 0.) {
             fprintf(stdout,"%f\n",curtempo);