Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    r3e7c408 rbc4ba75  
    4040smpl_t threshold                      = 0.3;
    4141smpl_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;
     44uint_t buffer_size                    = 1024;
     45uint_t overlap_size                   = 512;
     46// uint_t buffer_size                    = 2048;
     47// uint_t overlap_size                   = 1024;
    4448uint_t channels                       = 1;
    4549uint_t samplerate                     = 44100;
     
    6064int isonset = 0;
    6165aubio_pickpeak_t * parms;
    62 
    63 /* mfcc objects */
    64 //parameters
    65 uint_t n_filters=20;
    66 smpl_t lowfreq=80.f;
    67 smpl_t highfreq=18000.f;
    68 // filterbank object
    69 aubio_filterbank_t * mf;
    70 
    71 // DCT mfft and result storage
    72 aubio_mfft_t * fft_dct;
    73 cvec_t * fftgrain_dct;
    74 smpl_t * mfcc_outbuf[11];
    75 
    7666
    7767/* pitch objects */
     
    314304  fftgrain  = new_cvec(buffer_size, channels);
    315305
    316   //init for mfcc process
    317   fftgrain_dct= new_cvec(n_filters, channels);
    318 
     306 
    319307  if (usepitch) {
    320308    pitchdet = new_aubio_pitchdetection(buffer_size*4,
     
    330318  pv = new_aubio_pvoc(buffer_size, overlap_size, channels);
    331319 
    332   // dct phase vocoder
    333   //TODO: check size
    334   fft_dct = new_aubio_mfft(n_filters, channels);
    335 
    336320  /* onsets */
    337321  parms = new_aubio_peakpicker(threshold);
     
    367351  del_fvec(onset);
    368352  del_fvec(woodblock);
    369  
    370   //mffc related
    371   del_aubio_mfft(fft_dct);
    372   del_cvec(fftgrain_dct);
    373353 
    374354  aubio_cleanup();
Note: See TracChangeset for help on using the changeset viewer.