From cbda66162f504848ea38b16eaca5ea768a9064b5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 21 Feb 2014 13:09:34 -0300 Subject: [PATCH] src/onset/onset.c: default depends on hop_size, not samplerate --- src/onset/onset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onset/onset.c b/src/onset/onset.c index 9bc3f1b3..115f4c67 100644 --- a/src/onset/onset.c +++ b/src/onset/onset.c @@ -185,7 +185,7 @@ aubio_onset_t * new_aubio_onset (char_t * onset_mode, /* set some default parameter */ aubio_onset_set_threshold (o, 0.3); - aubio_onset_set_delay_ms(o, 50.); + aubio_onset_set_delay(o, 4.3 * hop_size); aubio_onset_set_minioi_ms(o, 20.); aubio_onset_set_silence(o, -70.); -- 2.11.0