shithub: aubio

Download patch

ref: c82859f347b082d73b66648b10070a4c45434b9b
parent: e8b47cec13cea38d9e1505a2b8031c86570a7753
author: Paul Brossier <[email protected]>
date: Wed Apr 5 07:47:40 EDT 2017

src/onset/onset.c: add old_default mode

--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -322,6 +322,11 @@
     aubio_spectral_whitening_set_floor(o->spectral_whitening, 1.);
     aubio_onset_set_compression (o, 10.);
   } else if (strcmp (onset_mode, "specdiff") == 0) {
+  } else if (strcmp (onset_mode, "old_default") == 0) {
+    // used to reproduce results obtained with the previous version
+    aubio_onset_set_threshold (o, 0.3);
+    aubio_onset_set_minioi_ms (o, 20.);
+    aubio_onset_set_compression (o, 0.);
   } else {
     AUBIO_WRN("onset: unknown spectral descriptor type %s, "
                "using default parameters.\n", onset_mode);