Changeset d66d2ac for src/spectral


Ignore:
Timestamp:
Nov 17, 2018, 2:59:54 PM (5 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:
11c899b
Parents:
d8eedfa
Message:

[mfcc] remove note about power, add scale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/mfcc.c

    rd8eedfa rd66d2ac  
    5252  fvec_t *output;
    5353#endif
     54  smpl_t scale;
    5455};
    5556
     
    9899#endif
    99100
     101  mfcc->scale = 1.;
     102
    100103  return mfcc;
    101104}
     
    128131  fvec_t tmp;
    129132#endif
     133
    130134  /* compute filterbank */
    131135  aubio_filterbank_do (mf->fb, in, mf->in_dct);
     
    134138  fvec_log10 (mf->in_dct);
    135139
    136   /* raise power */
    137   //fvec_pow (mf->in_dct, 3.);
     140  if (mf->scale != 1) fvec_mul (mf->in_dct, mf->scale);
    138141
    139142  /* compute mfccs */
     
    162165}
    163166
     167uint_t aubio_mfcc_set_scale (aubio_mfcc_t *mf, smpl_t scale)
     168{
     169  mf->scale = scale;
     170  return AUBIO_OK;
     171}
     172
     173uint_t aubio_mfcc_get_scale (aubio_mfcc_t *mf)
     174{
     175  return mf->scale;
     176}
     177
    164178uint_t aubio_mfcc_set_mel_coeffs (aubio_mfcc_t *mf, smpl_t freq_min,
    165179    smpl_t freq_max)
Note: See TracChangeset for help on using the changeset viewer.