From 4f33dd31b398373e430532b89201f0d43b2c3da2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 8 Sep 2007 14:19:53 +0200 Subject: [PATCH] mfcc.c: remove old code --- src/mfcc.c | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/src/mfcc.c b/src/mfcc.c index 488e3c2b..f399d4dc 100644 --- a/src/mfcc.c +++ b/src/mfcc.c @@ -141,54 +141,3 @@ void aubio_dct_do(aubio_mfcc_t * mf, fvec_t *in, fvec_t *out){ //return XTRACT_SUCCESS; } - -///////// OLD CODE - -// int aubio_mfcc_do(const float *data, const int N, const void *argv, float *result, aubio_mfft_t * fft_dct, cvec_t * fftgrain_dct){ -// -// aubio_mel_filter *f; -// uint_t n, filter; -// -// f = (aubio_mel_filter *)argv; -// printf("%d",f->n_filters); -// -// for(filter = 0; filter < f->n_filters; filter++){ -// result[filter] = 0.f; -// for(n = 0; n < N; n++){ -// result[filter] += data[n] * f->filters[filter][n]; -// } -// result[filter] = LOG(result[filter] < XTRACT_LOG_LIMIT ? XTRACT_LOG_LIMIT : result[filter]); -// } -// -// //TODO: check that zero padding -// for(n = filter + 1; n < N; n++) result[n] = 0; -// -// aubio_dct_do(result, f->n_filters, NULL, result, fft_dct, fftgrain_dct); -// -// return XTRACT_SUCCESS; -// } - -// Added last two arguments to be able to pass from example - -// int aubio_dct_do(const float *data, const int N, const void *argv, float *result, aubio_mfft_t * fft_dct, cvec_t * fftgrain_dct){ -// -// -// //call aubio p_voc in dct setting -// -// //TODO: fvec as input? Remove data length, N? -// -// fvec_t * momo = new_fvec(20, 1); -// momo->data = data; -// -// //compute mag spectrum -// aubio_mfft_do (fft_dct, data, fftgrain_dct); -// -// int i; -// //extract real part of fft grain -// for(i=0; inorm[0][i]*COS(fftgrain_dct->phas[0][i]); -// } -// -// -// return XTRACT_SUCCESS; -// } -- 2.26.2