From 47e067b8c5d4e822b9df92c97105aeac7097ed8c Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 15 Oct 2013 22:37:14 +0200 Subject: [PATCH] src/tempo/tempo.c, src/onset/onset.c: fix _get_last_ms --- src/onset/onset.c | 2 +- src/tempo/tempo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.11.0