#include "spectral/filterbank.h"
#include "mathutils.h"
-#define VERY_SMALL_NUMBER 2e-42
-
/** \brief A structure to store a set of n_filters filters of lenghts win_s */
struct aubio_filterbank_t_
{
for (j = 0; j < in->length; j++) {
out->data[i][fn] += in->norm[i][j] * f->filters->data[fn][j];
}
-
- /* threshold to VERY_SMALL_NUMBER to avoid log oveflow */
- out->data[i][fn] = MAX (VERY_SMALL_NUMBER, out->data[i][fn]);
-
- /* compute logarithm */
- out->data[i][fn] = LOG10 (out->data[i][fn]);
}
}
#include "aubio_priv.h"
#include "fvec.h"
#include "cvec.h"
+#include "mathutils.h"
#include "spectral/fft.h"
#include "spectral/filterbank_mel.h"
#include "spectral/mfcc.h"
/* compute filterbank */
aubio_filterbank_do (mf->fb, in, mf->in_dct);
+ /* compute log10 */
+ fvec_log10 (mf->in_dct);
+
+ /* raise power */
+ //vec_pow (mf->in_dct, 3.);
+
/* zeros output */
fvec_zeros(out);