Changeset 1d51820


Ignore:
Timestamp:
Nov 17, 2018, 11:40:32 AM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
0e30a12
Parents:
04cd251
Message:

[filterbank] fix mel htk mode

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-filterbank.c

    r04cd251 r1d51820  
    219219  }
    220220
    221   err = aubio_filterbank_set_mel_coeffs_htk (self->o,
    222       freq_min, freq_max, samplerate);
     221  err = aubio_filterbank_set_mel_coeffs_htk (self->o, samplerate,
     222      freq_min, freq_max);
    223223  if (err > 0) {
    224224    if (PyErr_Occurred() == NULL) {
  • src/spectral/filterbank_mel.c

    r04cd251 r1d51820  
    286286  for (m = 0; m < n_bands + 2; m++)
    287287  {
    288     freqs->data[m] = MIN(aubio_meltohz_htk(step * m), samplerate/2.);
     288    freqs->data[m] = MIN(aubio_meltohz_htk(start + step * m), samplerate/2.);
    289289  }
    290290
Note: See TracChangeset for help on using the changeset viewer.