From: Paul Brossier Date: Sun, 14 Apr 2013 03:23:04 +0000 (-0500) Subject: src/tempo/tempo.c: always set last_beat X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=aubio.git src/tempo/tempo.c: always set last_beat --- diff --git a/src/tempo/tempo.c b/src/tempo/tempo.c index 80626e98..4894212c 100644 --- a/src/tempo/tempo.c +++ b/src/tempo/tempo.c @@ -88,11 +88,12 @@ void aubio_tempo_do(aubio_tempo_t *o, fvec_t * input, fvec_t * tempo) if (o->blockpos == FLOOR(o->out->data[i])) { tempo->data[0] = o->out->data[i] - FLOOR(o->out->data[i]); /* set tactus */ /* test for silence */ + /* if (aubio_silence_detection(input, o->silence)==1) { - //tempo->data[0] = 0; /* unset onset */ - } else { - o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size); + tempo->data[0] = 0; // unset beat if silent } + */ + o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size); } } o->total_frames += o->hop_size;