Changeset d4791e5 for src/spectral/mfcc.c
- Timestamp:
- Jan 3, 2014, 12:47:22 AM (10 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:
- 2e01060
- Parents:
- 89e9e71 (diff), 4fe62ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/mfcc.c
r89e9e71 rd4791e5 52 52 /* allocate space for mfcc object */ 53 53 aubio_mfcc_t *mfcc = AUBIO_NEW (aubio_mfcc_t); 54 smpl_t scaling; 54 55 55 56 uint_t i, j; … … 71 72 /* compute DCT transform dct_coeffs[i][j] as 72 73 cos ( j * (i+.5) * PI / n_filters ) */ 73 s mpl_t scaling = 1. / SQRT (n_filters / 2.);74 scaling = 1. / SQRT (n_filters / 2.); 74 75 for (i = 0; i < n_filters; i++) { 75 76 for (j = 0; j < n_coefs; j++) {
Note: See TracChangeset
for help on using the changeset viewer.