From: Paul Brossier Date: Mon, 8 Feb 2016 13:33:56 +0000 (+0100) Subject: src/onset/onset.c: also disable adaptive_whitening when using default = hfc X-Git-Tag: 0.4.5~20^2~38 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=00d0275bc3279e523ce21d183884d24024dfbff8;p=aubio.git src/onset/onset.c: also disable adaptive_whitening when using default = hfc --- diff --git a/src/onset/onset.c b/src/onset/onset.c index 5e51cfd8..f416ef89 100644 --- a/src/onset/onset.c +++ b/src/onset/onset.c @@ -259,7 +259,7 @@ void aubio_onset_default_parameters (aubio_onset_t * o, char_t * onset_mode) /* method specific optimisations */ if (strcmp (onset_mode, "energy") == 0) { - } else if (strcmp (onset_mode, "hfc") == 0) { + } else if (strcmp (onset_mode, "hfc") == 0 || strcmp (onset_mode, "default") == 0) { aubio_onset_set_adaptive_whitening (o, 0); } else if (strcmp (onset_mode, "complexdomain") == 0 || strcmp (onset_mode, "complex") == 0) { @@ -274,7 +274,6 @@ void aubio_onset_default_parameters (aubio_onset_t * o, char_t * onset_mode) } else if (strcmp (onset_mode, "specflux") == 0) { aubio_onset_set_threshold (o, 0.4); } else if (strcmp (onset_mode, "specdiff") == 0) { - } else if (strcmp (onset_mode, "default") == 0) { } else { AUBIO_ERR ("onset: unknown spectral descriptor type %s, " "using default parameters.\n", onset_mode);