Ignore:
Timestamp:
Sep 11, 2007, 9:25:43 PM (17 years ago)
Author:
Amaury Hazan <mahmoudax@gmail.com>
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:
83d5abf
Parents:
ef1c3b7
Message:

aubiomfcc.c: added a dump filterbank funcion
filterbank: written mfcc filterbank init according to slaney auditory toolbox (90%)
plotfb.py: added x log scale option
#some hacks and debug test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    ref1c3b7 rf72ceeb  
    2424aubio_mfcc_t * mfcc;
    2525
    26 uint_t n_filters = 20;
    27 uint_t n_coefs = 11;
     26uint_t n_filters = 40;
     27uint_t n_coefs = 20;
    2828
    2929unsigned int pos = 0; /*frames%dspblocksize*/
     
    5353      //compute mfccs
    5454      aubio_mfcc_do(mfcc, fftgrain, mfcc_out);
    55 
     55     
     56      uint_t coef_cnt;
     57      for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
     58          outmsg("%f ",mfcc_out->data[0][coef_cnt]);
     59      }
     60      outmsg("\n");
     61     
    5662      /* end of block loop */
    5763      pos = -1; /* so it will be zero next j loop */
     
    7884        //outmsg("%f ",mfcc_out->data[0][0]);
    7985       
    80         /*for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
    81           outmsg("%f ",mfcc_out->data[0][coef_cnt]);
    82         }
    83         outmsg("\n");/*/
     86       
    8487      }
    8588}
     
    9396  mfcc_out = new_fvec(n_coefs,channels);
    9497 
     98 
    9599  //populating the filter
    96100  mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels);
    97101  dump_filterbank(mfcc);
     102 
    98103 
    99104  //process
Note: See TracChangeset for help on using the changeset viewer.