Changeset fdf39ba for examples/utils.c
- Timestamp:
- Sep 7, 2007, 10:49:45 AM (17 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:
- 8708556
- Parents:
- 97886fa (diff), 7c6c806d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
r97886fa rfdf39ba 60 60 int isonset = 0; 61 61 aubio_pickpeak_t * parms; 62 63 /* mfcc objects */ 64 //parameters 65 uint_t n_filters=20; 66 uint_t nyquist= samplerate / 2.; 67 smpl_t lowfreq=80.f; 68 smpl_t highfreq=18000.f; 69 // filterbank object 70 aubio_mel_filter * mf; 71 72 // DCT mfft and result storage 73 aubio_mfft * fft_dct; 74 cvec_t * fftgrain_dct; 75 smpl_t mfcc_outbuf[11]; 62 76 63 77 … … 301 315 fftgrain = new_cvec(buffer_size, channels); 302 316 317 //init for mfcc process 318 fftgrain_dct= new_cvec(n_filters, channels); 319 303 320 if (usepitch) { 304 321 pitchdet = new_aubio_pitchdetection(buffer_size*4, … … 313 330 /* phase vocoder */ 314 331 pv = new_aubio_pvoc(buffer_size, overlap_size, channels); 332 333 // dct phase vocoder 334 //TODO: check size 335 fft_dct = new_aubio_mfft(n_filters, channels); 336 315 337 /* onsets */ 316 338 parms = new_aubio_peakpicker(threshold); … … 346 368 del_fvec(onset); 347 369 del_fvec(woodblock); 370 371 //mffc related 372 del_aubio_mfft(fft_dct); 373 del_cvec(fftgrain_dct); 374 348 375 aubio_cleanup(); 349 376 }
Note: See TracChangeset
for help on using the changeset viewer.