From: Paul Brossier Date: Tue, 15 Oct 2013 20:37:14 +0000 (+0200) Subject: src/tempo/tempo.c, src/onset/onset.c: fix _get_last_ms X-Git-Tag: 0.4.0-beta1~110^2~21 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=47e067b8c5d4e822b9df92c97105aeac7097ed8c;p=aubio.git src/tempo/tempo.c, src/onset/onset.c: fix _get_last_ms --- diff --git a/src/onset/onset.c b/src/onset/onset.c index a5ed954e..b76c7fc3 100644 --- a/src/onset/onset.c +++ b/src/onset/onset.c @@ -92,7 +92,7 @@ smpl_t aubio_onset_get_last_s (aubio_onset_t *o) smpl_t aubio_onset_get_last_ms (aubio_onset_t *o) { - return aubio_onset_get_last_s (o) / 1000.; + return aubio_onset_get_last_s (o) * 1000.; } uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence) { diff --git a/src/tempo/tempo.c b/src/tempo/tempo.c index 4894212c..ad8693b6 100644 --- a/src/tempo/tempo.c +++ b/src/tempo/tempo.c @@ -112,7 +112,7 @@ smpl_t aubio_tempo_get_last_s (aubio_tempo_t *o) smpl_t aubio_tempo_get_last_ms (aubio_tempo_t *o) { - return aubio_tempo_get_last_s (o) / 1000.; + return aubio_tempo_get_last_s (o) * 1000.; } uint_t aubio_tempo_set_delay(aubio_tempo_t * o, uint_t delay) {