Changeset 21bd43c for examples


Ignore:
Timestamp:
Sep 8, 2007, 1:52:48 PM (17 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
73eaa2e
Parents:
cb0415d (diff), 8708556 (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.
Message:

merge from Amaury's changes

Location:
examples
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    rcb0415d r21bd43c  
    6060int isonset = 0;
    6161aubio_pickpeak_t * parms;
     62
     63/* mfcc objects */
     64//parameters
     65uint_t n_filters=20;
     66uint_t nyquist= samplerate / 2.;
     67smpl_t lowfreq=80.f;
     68smpl_t highfreq=18000.f;
     69// filterbank object
     70aubio_mel_filter * mf;
     71
     72// DCT mfft and result storage
     73aubio_mfft * fft_dct;
     74cvec_t * fftgrain_dct;
     75smpl_t mfcc_outbuf[11];
    6276
    6377
     
    301315  fftgrain  = new_cvec(buffer_size, channels);
    302316
     317  //init for mfcc process
     318  fftgrain_dct= new_cvec(n_filters, channels);
     319
    303320  if (usepitch) {
    304321    pitchdet = new_aubio_pitchdetection(buffer_size*4,
     
    313330  /* phase vocoder */
    314331  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
    315337  /* onsets */
    316338  parms = new_aubio_peakpicker(threshold);
     
    346368  del_fvec(onset);
    347369  del_fvec(woodblock);
     370 
     371  //mffc related
     372  del_aubio_mfft(fft_dct);
     373  del_cvec(fftgrain_dct);
     374 
    348375  aubio_cleanup();
    349376}
  • examples/utils.h

    rcb0415d r21bd43c  
    9898extern aubio_pickpeak_t * parms;
    9999
     100/* mfcc objects */
     101// params
     102extern uint_t n_filters;
     103extern uint_t nyquist;
     104extern smpl_t lowfreq;
     105extern smpl_t highfreq;
     106// filterbank object
     107extern aubio_mel_filter * mf;
     108// DCT pvoc and result storage
     109extern aubio_mfft_t * fft_dct;
     110extern cvec_t * fftgrain_dct;
     111extern smpl_t mfcc_outbuf[20];
    100112
    101113/* pitch objects */
Note: See TracChangeset for help on using the changeset viewer.