From f45dd12cc696444320b8360b0c84650e50324e34 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 5 Sep 2015 12:12:32 +0200 Subject: [PATCH] src/tempo/*: remove trailing spaces --- src/tempo/beattracking.c | 10 +++++----- src/tempo/beattracking.h | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/tempo/beattracking.c b/src/tempo/beattracking.c index 3bfa1de4..c6bf4844 100644 --- a/src/tempo/beattracking.c +++ b/src/tempo/beattracking.c @@ -135,8 +135,8 @@ aubio_beattracking_do (aubio_beattracking_t * bt, fvec_t * dfframe, //number of harmonics in shift invariant comb filterbank uint_t numelem = 4; - smpl_t phase; // beat alignment (step - lastbeat) - smpl_t beat; // beat position + smpl_t phase; // beat alignment (step - lastbeat) + smpl_t beat; // beat position smpl_t bp; // beat period uint_t a, b; // used to build shift invariant comb filterbank uint_t kmax; // number of elements used to find beat phase @@ -226,7 +226,7 @@ aubio_beattracking_do (aubio_beattracking_t * bt, fvec_t * dfframe, i = 1; beat = bp - phase; - // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n", + // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n", // bp, phase, bt->lastbeat, step, winlen); /* the next beat will be earlier than 60% of the tempo period @@ -318,7 +318,7 @@ aubio_beattracking_checkstate (aubio_beattracking_t * bt) gp = 0; } - //now look for step change - i.e. a difference between gp and rp that + //now look for step change - i.e. a difference between gp and rp that // is greater than 2*constthresh - always true in first case, since gp = 0 if (counter == 0) { if (ABS (gp - rp) > 2. * bt->g_var) { @@ -341,7 +341,7 @@ aubio_beattracking_checkstate (aubio_beattracking_t * bt) counter = 2; // let it look next time } } else if (counter > 0) { - //if counter doesn't = 1, + //if counter doesn't = 1, counter = counter - 1; } diff --git a/src/tempo/beattracking.h b/src/tempo/beattracking.h index 80470e95..c3b6a231 100644 --- a/src/tempo/beattracking.h +++ b/src/tempo/beattracking.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2003-2013 Matthew Davies and Paul Brossier + Copyright (C) 2003-2015 Matthew Davies and Paul Brossier This file is part of aubio. @@ -34,7 +34,7 @@ Engeeniring Society 118th Convention, Barcelona, Spain, May 2005. \example tempo/test-beattracking.c - + */ #ifndef _AUBIO_BEATTRACKING_H #define _AUBIO_BEATTRACKING_H @@ -49,19 +49,19 @@ typedef struct _aubio_beattracking_t aubio_beattracking_t; /** create beat tracking object \param winlen length of the onset detection window - \param hop_size number of onset detection samples [512] + \param hop_size number of onset detection samples [512] \param samplerate samplerate of the input signal */ aubio_beattracking_t * new_aubio_beattracking(uint_t winlen, uint_t hop_size, uint_t samplerate); -/** track the beat +/** track the beat \param bt beat tracking object \param dfframes current input detection function frame, smoothed by - adaptive median threshold. - \param out stored detected beat locations + adaptive median threshold. + \param out stored detected beat locations */ void aubio_beattracking_do (aubio_beattracking_t * bt, fvec_t * dfframes, @@ -77,7 +77,7 @@ void aubio_beattracking_do (aubio_beattracking_t * bt, fvec_t * dfframes, */ smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * bt); -/** get current tempo confidence +/** get current tempo confidence \param bt beat tracking object -- 2.11.0