Changeset b901228


Ignore:
Timestamp:
Sep 23, 2009, 7:50:40 PM (15 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:
f50cd286
Parents:
000b090
Message:

examples/aubiomfcc.c: update to latest mfcc version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r000b090 rb901228  
    2525
    2626uint_t n_filters = 40;
    27 uint_t n_coefs = 11;
     27uint_t n_coefs = 13;
    2828
    2929unsigned int pos = 0; /*frames%dspblocksize*/
     
    7070      uint_t coef_cnt;
    7171      if (output_filename == NULL) {
    72          if(frames >= 4) {
    73            outmsg("%f\t",(frames-4)*overlap_size/(float)samplerate);
    74          }
    75          else if (frames < 4) {
    76            outmsg("%f\t",0.);
    77          }
     72        outmsg("%f\t",frames*overlap_size/(float)samplerate);
    7873        for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
    7974            outmsg("%f ",mfcc_out->data[0][coef_cnt]);
     
    8580int main(int argc, char **argv) {
    8681  // params
    87   buffer_size  = 1024;
    88   overlap_size = 512;
     82  buffer_size  = 512;
     83  overlap_size = 256;
    8984 
    9085  examples_common_init(argc,argv);
    91   smpl_t lowfreq = 133.333f;
    92   smpl_t highfreq = 44100.f;
    9386  mfcc_out = new_fvec(n_coefs,channels);
    9487 
    9588 
    9689  //populating the filter
    97   mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels);
     90  mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs);
    9891 
    9992  //process
Note: See TracChangeset for help on using the changeset viewer.