src/tempo/tempo.{c,h}: rename aubio_tempo to aubio_tempo_do
authorPaul Brossier <piem@piem.org>
Wed, 7 Oct 2009 20:34:07 +0000 (22:34 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 7 Oct 2009 20:34:07 +0000 (22:34 +0200)
examples/aubiotrack.c
plugins/puredata/aubiotempo~.c
src/tempo/tempo.c
src/tempo/tempo.h
tests/src/test-tempo.c

index 819bfc9..65a7a33 100644 (file)
@@ -41,7 +41,7 @@ int aubio_process(smpl_t **input, smpl_t **output, int nframes) {
     /*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 
index 7fd34a3..8bc5aa4 100644 (file)
@@ -43,7 +43,7 @@ static t_int *aubiotempo_tilde_perform(t_int *w)
     /*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);
       }
index 16346a2..6b7a7d4 100644 (file)
@@ -45,7 +45,7 @@ struct _aubio_tempo_t {
 };
 
 /* 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;
index ef30218..0c3f772 100644 (file)
@@ -41,7 +41,7 @@ aubio_tempo_t * new_aubio_tempo (aubio_onsetdetection_type type_onset,
     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);
index 0b71333..0c1ee25 100644 (file)
@@ -13,7 +13,7 @@ int main(){
         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);