From: Paul Brossier Date: Wed, 7 Oct 2009 21:24:54 +0000 (+0200) Subject: src/onset/onset.c: rename aubio_onset to aubio_onset_do X-Git-Tag: bzr2git~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a72f3f19a62e279673b902525e5f4340f0c4c139;p=aubio.git src/onset/onset.c: rename aubio_onset to aubio_onset_do --- diff --git a/src/onset/onset.c b/src/onset/onset.c index a7a80133..296aafc1 100644 --- a/src/onset/onset.c +++ b/src/onset/onset.c @@ -40,7 +40,7 @@ struct _aubio_onset_t { }; /* 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; diff --git a/src/onset/onset.h b/src/onset/onset.h index aa67bd1f..8e7e7e31 100644 --- 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 @@ aubio_onset_t * new_aubio_onset (aubio_onsetdetection_type type_onset, \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 diff --git a/tests/src/test-onset.c b/tests/src/test-onset.c index c26ccdcc..370cd03b 100644 --- a/tests/src/test-onset.c +++ b/tests/src/test-onset.c @@ -10,7 +10,7 @@ int main(){ uint_t i = 0; while (i < 10) { - aubio_onset(onset,in,out); + aubio_onset_do (onset,in,out); i++; };