Changes in examples/utils.c [3e7c408:bc4ba75]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
r3e7c408 rbc4ba75 40 40 smpl_t threshold = 0.3; 41 41 smpl_t silence = -90.; 42 uint_t buffer_size = 512; //1024; 43 uint_t overlap_size = 256; //512; 42 // uint_t buffer_size = 512; 43 // uint_t overlap_size = 256; 44 uint_t buffer_size = 1024; 45 uint_t overlap_size = 512; 46 // uint_t buffer_size = 2048; 47 // uint_t overlap_size = 1024; 44 48 uint_t channels = 1; 45 49 uint_t samplerate = 44100; … … 60 64 int isonset = 0; 61 65 aubio_pickpeak_t * parms; 62 63 /* mfcc objects */64 //parameters65 uint_t n_filters=20;66 smpl_t lowfreq=80.f;67 smpl_t highfreq=18000.f;68 // filterbank object69 aubio_filterbank_t * mf;70 71 // DCT mfft and result storage72 aubio_mfft_t * fft_dct;73 cvec_t * fftgrain_dct;74 smpl_t * mfcc_outbuf[11];75 76 66 77 67 /* pitch objects */ … … 314 304 fftgrain = new_cvec(buffer_size, channels); 315 305 316 //init for mfcc process 317 fftgrain_dct= new_cvec(n_filters, channels); 318 306 319 307 if (usepitch) { 320 308 pitchdet = new_aubio_pitchdetection(buffer_size*4, … … 330 318 pv = new_aubio_pvoc(buffer_size, overlap_size, channels); 331 319 332 // dct phase vocoder333 //TODO: check size334 fft_dct = new_aubio_mfft(n_filters, channels);335 336 320 /* onsets */ 337 321 parms = new_aubio_peakpicker(threshold); … … 367 351 del_fvec(onset); 368 352 del_fvec(woodblock); 369 370 //mffc related371 del_aubio_mfft(fft_dct);372 del_cvec(fftgrain_dct);373 353 374 354 aubio_cleanup();
Note: See TracChangeset
for help on using the changeset viewer.