Changeset 1c1dae7 for src


Ignore:
Timestamp:
Nov 17, 2018, 3:16:25 PM (7 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
8eecb9f
Parents:
c879811
Message:

[mfcc] default to full range when not using 40 filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/mfcc.c

    rc879811 r1c1dae7  
    7676  /* filterbank allocation */
    7777  mfcc->fb = new_aubio_filterbank (n_filters, mfcc->win_s);
    78   aubio_filterbank_set_mel_coeffs_slaney (mfcc->fb, samplerate);
     78  if (n_filters == 40)
     79    aubio_filterbank_set_mel_coeffs_slaney (mfcc->fb, samplerate);
     80  else
     81    aubio_filterbank_set_mel_coeffs(mfcc->fb, samplerate,
     82        0, samplerate/2.);
    7983
    8084  /* allocating buffers */
Note: See TracChangeset for help on using the changeset viewer.