Changeset 4f33dd3
- Timestamp:
- Sep 8, 2007, 2:19:53 PM (17 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:
- cfe4038
- Parents:
- 34d72f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mfcc.c
r34d72f0 r4f33dd3 142 142 } 143 143 144 145 ///////// OLD CODE146 147 // int aubio_mfcc_do(const float *data, const int N, const void *argv, float *result, aubio_mfft_t * fft_dct, cvec_t * fftgrain_dct){148 //149 // aubio_mel_filter *f;150 // uint_t n, filter;151 //152 // f = (aubio_mel_filter *)argv;153 // printf("%d",f->n_filters);154 //155 // for(filter = 0; filter < f->n_filters; filter++){156 // result[filter] = 0.f;157 // for(n = 0; n < N; n++){158 // result[filter] += data[n] * f->filters[filter][n];159 // }160 // result[filter] = LOG(result[filter] < XTRACT_LOG_LIMIT ? XTRACT_LOG_LIMIT : result[filter]);161 // }162 //163 // //TODO: check that zero padding164 // for(n = filter + 1; n < N; n++) result[n] = 0;165 //166 // aubio_dct_do(result, f->n_filters, NULL, result, fft_dct, fftgrain_dct);167 //168 // return XTRACT_SUCCESS;169 // }170 171 // Added last two arguments to be able to pass from example172 173 // int aubio_dct_do(const float *data, const int N, const void *argv, float *result, aubio_mfft_t * fft_dct, cvec_t * fftgrain_dct){174 //175 //176 // //call aubio p_voc in dct setting177 //178 // //TODO: fvec as input? Remove data length, N?179 //180 // fvec_t * momo = new_fvec(20, 1);181 // momo->data = data;182 //183 // //compute mag spectrum184 // aubio_mfft_do (fft_dct, data, fftgrain_dct);185 //186 // int i;187 // //extract real part of fft grain188 // for(i=0; i<N ;i++){189 // result[i]= fftgrain_dct->norm[0][i]*COS(fftgrain_dct->phas[0][i]);190 // }191 //192 //193 // return XTRACT_SUCCESS;194 // }
Note: See TracChangeset
for help on using the changeset viewer.