Changeset 517630f


Ignore:
Timestamp:
Nov 17, 2018, 2:55:09 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
10fafc2
Parents:
c853c1d
Message:

[mfcc] add set_mel_coeffs and power

Location:
src/spectral
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/mfcc.c

    rc853c1d r517630f  
    151151  return;
    152152}
     153
     154uint_t aubio_mfcc_set_power (aubio_mfcc_t *mf, smpl_t power)
     155{
     156  return aubio_filterbank_set_power(mf->fb, power);
     157}
     158
     159uint_t aubio_mfcc_get_power (aubio_mfcc_t *mf)
     160{
     161  return aubio_filterbank_get_power(mf->fb);
     162}
     163
     164uint_t aubio_mfcc_set_mel_coeffs (aubio_mfcc_t *mf, smpl_t freq_min,
     165    smpl_t freq_max)
     166{
     167  return aubio_filterbank_set_mel_coeffs(mf->fb, mf->samplerate,
     168      freq_min, freq_max);
     169}
     170
     171uint_t aubio_mfcc_set_mel_coeffs_htk (aubio_mfcc_t *mf, smpl_t freq_min,
     172    smpl_t freq_max)
     173{
     174  return aubio_filterbank_set_mel_coeffs_htk(mf->fb, mf->samplerate,
     175      freq_min, freq_max);
     176}
  • src/spectral/mfcc.h

    rc853c1d r517630f  
    7474void aubio_mfcc_do (aubio_mfcc_t * mf, const cvec_t * in, fvec_t * out);
    7575
     76uint_t aubio_mfcc_set_power (aubio_mfcc_t *mf, smpl_t power);
     77uint_t aubio_mfcc_get_power (aubio_mfcc_t *mf);
     78
     79uint_t aubio_mfcc_set_mel_coeffs (aubio_mfcc_t *mf, smpl_t freq_min,
     80    smpl_t freq_max);
     81uint_t aubio_mfcc_set_mel_coeffs_htk (aubio_mfcc_t *mf, smpl_t freq_min,
     82    smpl_t freq_max);
     83uint_t aubio_mfcc_set_mel_coeffs_slaney (aubio_mfcc_t *mf);
     84
    7685#ifdef __cplusplus
    7786}
Note: See TracChangeset for help on using the changeset viewer.