shithub: aubio

Download patch

ref: cbda66162f504848ea38b16eaca5ea768a9064b5
parent: 10b11d6703e5a46c751dd84a1e1af955e036efe2
author: Paul Brossier <piem@piem.org>
date: Fri Feb 21 08:09:34 EST 2014

src/onset/onset.c: default depends on hop_size, not samplerate

--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -185,7 +185,7 @@
 
   /* 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.);