From 5bf23f7a217ad3d4d75b31560bddeccd796e5101 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 7 Oct 2009 22:34:07 +0200 Subject: [PATCH] src/tempo/tempo.{c,h}: rename aubio_tempo to aubio_tempo_do --- examples/aubiotrack.c | 2 +- plugins/puredata/aubiotempo~.c | 2 +- src/tempo/tempo.c | 2 +- src/tempo/tempo.h | 2 +- tests/src/test-tempo.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/aubiotrack.c b/examples/aubiotrack.c index 819bfc95..65a7a330 100644 --- a/examples/aubiotrack.c +++ b/examples/aubiotrack.c @@ -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 diff --git a/plugins/puredata/aubiotempo~.c b/plugins/puredata/aubiotempo~.c index 7fd34a36..8bc5aa44 100644 --- a/plugins/puredata/aubiotempo~.c +++ b/plugins/puredata/aubiotempo~.c @@ -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); } diff --git a/src/tempo/tempo.c b/src/tempo/tempo.c index 16346a23..6b7a7d43 100644 --- a/src/tempo/tempo.c +++ b/src/tempo/tempo.c @@ -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; diff --git a/src/tempo/tempo.h b/src/tempo/tempo.h index ef302189..0c3f7721 100644 --- a/src/tempo/tempo.h +++ b/src/tempo/tempo.h @@ -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); diff --git a/tests/src/test-tempo.c b/tests/src/test-tempo.c index 0b713332..0c1ee25f 100644 --- a/tests/src/test-tempo.c +++ b/tests/src/test-tempo.c @@ -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); -- 2.26.2