src/tempo/tempo.c, src/onset/onset.c: fix _get_last_ms
authorPaul Brossier <piem@piem.org>
Tue, 15 Oct 2013 20:37:14 +0000 (22:37 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 15 Oct 2013 20:37:14 +0000 (22:37 +0200)
src/onset/onset.c
src/tempo/tempo.c

index a5ed954..b76c7fc 100644 (file)
@@ -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) {
index 4894212..ad8693b 100644 (file)
@@ -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) {