//compute mag spectrum
aubio_pvoc_do (pv,ibuf, fftgrain);
-
+
+ uint_t coef_cnt;
+ uint_t n_filters=20;
+ smpl_t outbuf[20];
+
+ for (coef_cnt=0; coef_cnt<n_filters ; coef_cnt++)
+ outbuf[coef_cnt]=0.f;
- //compute mfcics
+ //compute mfccs
aubio_mffc_do(fftgrain->norm, nframes, filterbank, outbuf);
+ for (coef_cnt=0; coef_cnt<n_filters ; coef_cnt++)
+ outmsg("%f ",outbuf[coef_cnt]);
+ outmsg("\n");
+
/* end of block loop */
//allocate and initialize mel filter bank
uint_t n_filters=20;
uint_t nyquist= samplerate / 2.;
+ smpl_t lowfreq=80.f;
+ smpl_t highfreq=18000.f;
uint_t banksize = (uint) ( sizeof(aubio_mel_filter));
aubio_mel_filter * mf = (aubio_mel_filter *)getbytes(banksize);
mf->filters[n] = (smpl_t *)getbytes((buffer_size/2+1) * sizeof(smpl_t));
//populating the filter
- new_aubio_mfcc(buffer_size, nyquist, XTRACT_EQUAL_GAIN, 80.0f, 18000.0f, mf->n_filters, mf->filters);
+ aubio_mfcc_init(buffer_size, nyquist, XTRACT_EQUAL_GAIN, lowfreq, highfreq, mf->n_filters, mf->filters);
//process
examples_common_process(aubio_process,process_print);
beattracking.h \
onset.h \
tempo.h \
- filter.h
+ filter.h
+
nodist_pkginclude_HEADERS = config.h
lib_LTLIBRARIES = libaubio.la
tempo.c \
tempo.h \
filter.c \
- filter.h
+ filter.h \
AM_CFLAGS = @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
libaubio_la_LIBADD = @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@