Changeset 202ffa5
- Timestamp:
- Oct 11, 2009, 12:49:49 PM (15 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:
- d9b5009
- Parents:
- 74a4865
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/mfcc.c
r74a4865 r202ffa5 100 100 aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t * in, fvec_t * out) 101 101 { 102 uint_t i, j ;102 uint_t i, j, k; 103 103 104 104 /* compute filterbank */ … … 115 115 116 116 /* compute discrete cosine transform */ 117 for (i = 0; i < mf->n_filters; i++) { 118 for (j = 0; j < mf->n_coefs; j++) { 119 out->data[0][j] += mf->in_dct->data[0][i] 120 * mf->dct_coeffs->data[i][j]; 117 for (i = 0; i < out->channels; i++) { 118 for (j = 0; j < mf->n_filters; j++) { 119 for (k = 0; k < mf->n_coefs; k++) { 120 out->data[i][k] += mf->in_dct->data[i][j] 121 * mf->dct_coeffs->data[j][k]; 122 } 121 123 } 122 124 }
Note: See TracChangeset
for help on using the changeset viewer.