Changeset 73e8f65
- Timestamp:
- Feb 16, 2016, 9:53:28 PM (9 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 240517e
- Parents:
- c02a1cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/mfcc.c
rc02a1cc r73e8f65 103 103 aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t * in, fvec_t * out) 104 104 { 105 uint_t j, k;106 107 105 /* compute filterbank */ 108 106 aubio_filterbank_do (mf->fb, in, mf->in_dct); … … 114 112 //fvec_pow (mf->in_dct, 3.); 115 113 116 /* zeros output */ 117 fvec_zeros(out); 118 119 /* compute discrete cosine transform */ 120 for (j = 0; j < mf->n_filters; j++) { 121 for (k = 0; k < mf->n_coefs; k++) { 122 out->data[k] += mf->in_dct->data[j] 123 * mf->dct_coeffs->data[k][j]; 124 } 125 } 114 /* compute mfccs */ 115 fmat_vecmul(mf->dct_coeffs, mf->in_dct, out); 126 116 127 117 return;
Note: See TracChangeset
for help on using the changeset viewer.