- Timestamp:
- Sep 6, 2007, 2:33:11 AM (18 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:
- 97886fa
- Parents:
- fe28ff3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
rfe28ff3 r71d3bf0 41 41 //compute mag spectrum 42 42 aubio_pvoc_do (pv,ibuf, fftgrain); 43 44 uint_t coef_cnt; 45 uint_t n_filters=20; 46 smpl_t outbuf[20]; 47 48 for (coef_cnt=0; coef_cnt<n_filters ; coef_cnt++) 49 outbuf[coef_cnt]=0.f; 50 51 //compute mfccs 52 aubio_mffc_do(fftgrain->norm, nframes, filterbank, outbuf); 43 53 44 45 //compute mfcics46 aubio_mffc_do(fftgrain->norm, nframes, filterbank, outbuf);54 for (coef_cnt=0; coef_cnt<n_filters ; coef_cnt++) 55 outmsg("%f ",outbuf[coef_cnt]); 56 outmsg("\n"); 47 57 48 58 … … 77 87 uint_t n_filters=20; 78 88 uint_t nyquist= samplerate / 2.; 89 smpl_t lowfreq=80.f; 90 smpl_t highfreq=18000.f; 79 91 80 92 uint_t banksize = (uint) ( sizeof(aubio_mel_filter)); … … 87 99 88 100 //populating the filter 89 new_aubio_mfcc(buffer_size, nyquist, XTRACT_EQUAL_GAIN, 80.0f, 18000.0f, mf->n_filters, mf->filters);101 aubio_mfcc_init(buffer_size, nyquist, XTRACT_EQUAL_GAIN, lowfreq, highfreq, mf->n_filters, mf->filters); 90 102 91 103 //process
Note: See TracChangeset
for help on using the changeset viewer.