From: Paul Brossier Date: Wed, 5 Apr 2017 09:47:40 +0000 (+0200) Subject: src/onset/onset.c: add old_default mode X-Git-Tag: 0.4.5~20^2 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=c82859f347b082d73b66648b10070a4c45434b9b src/onset/onset.c: add old_default mode --- diff --git a/src/onset/onset.c b/src/onset/onset.c index 0c1ee99f..0c7ebba9 100644 --- a/src/onset/onset.c +++ b/src/onset/onset.c @@ -322,6 +322,11 @@ uint_t aubio_onset_set_default_parameters (aubio_onset_t * o, const char_t * ons 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);