ref: 1c1dae7f18591437042c384c148f2c20fb33e1f0
parent: c87981167ff830551d1569006aa248fc08ade33a
author: Paul Brossier <piem@piem.org>
date: Sat Nov 17 10:16:25 EST 2018
[mfcc] default to full range when not using 40 filters
--- a/src/spectral/mfcc.c
+++ b/src/spectral/mfcc.c
@@ -75,7 +75,11 @@
/* filterbank allocation */
mfcc->fb = new_aubio_filterbank (n_filters, mfcc->win_s);
- aubio_filterbank_set_mel_coeffs_slaney (mfcc->fb, samplerate);
+ if (n_filters == 40)
+ aubio_filterbank_set_mel_coeffs_slaney (mfcc->fb, samplerate);
+ else
+ aubio_filterbank_set_mel_coeffs(mfcc->fb, samplerate,
+ 0, samplerate/2.);
/* allocating buffers */
mfcc->in_dct = new_fvec (n_filters);