Changeset d66d2ac
- Timestamp:
- Nov 17, 2018, 2:59:54 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/mfcc.c
rd8eedfa rd66d2ac 52 52 fvec_t *output; 53 53 #endif 54 smpl_t scale; 54 55 }; 55 56 … … 98 99 #endif 99 100 101 mfcc->scale = 1.; 102 100 103 return mfcc; 101 104 } … … 128 131 fvec_t tmp; 129 132 #endif 133 130 134 /* compute filterbank */ 131 135 aubio_filterbank_do (mf->fb, in, mf->in_dct); … … 134 138 fvec_log10 (mf->in_dct); 135 139 136 /* raise power */ 137 //fvec_pow (mf->in_dct, 3.); 140 if (mf->scale != 1) fvec_mul (mf->in_dct, mf->scale); 138 141 139 142 /* compute mfccs */ … … 162 165 } 163 166 167 uint_t aubio_mfcc_set_scale (aubio_mfcc_t *mf, smpl_t scale) 168 { 169 mf->scale = scale; 170 return AUBIO_OK; 171 } 172 173 uint_t aubio_mfcc_get_scale (aubio_mfcc_t *mf) 174 { 175 return mf->scale; 176 } 177 164 178 uint_t aubio_mfcc_set_mel_coeffs (aubio_mfcc_t *mf, smpl_t freq_min, 165 179 smpl_t freq_max)
Note: See TracChangeset
for help on using the changeset viewer.