Ignore:
Timestamp:
Sep 6, 2007, 2:33:11 AM (13 years ago)
Author:
Amaury Hazan <mahmoudax@gmail.com>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
97886fa
Parents:
fe28ff3
Message:

small adds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    rfe28ff3 r71d3bf0  
    4141      //compute mag spectrum
    4242      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);
    4353     
    44        
    45       //compute mfcics
    46       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");
    4757     
    4858     
     
    7787  uint_t n_filters=20;
    7888  uint_t nyquist= samplerate / 2.;
     89  smpl_t lowfreq=80.f;
     90  smpl_t highfreq=18000.f;
    7991
    8092  uint_t banksize = (uint) ( sizeof(aubio_mel_filter));
     
    8799 
    88100  //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);
    90102
    91103  //process
Note: See TracChangeset for help on using the changeset viewer.