Ignore:
Timestamp:
Oct 16, 2009, 11:03:08 PM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
6107f4c
Parents:
2828382
Message:

examples/: make use of aubio_onset in aubioonset and aubionotes, simplify, keep only general stuff in utils

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r2828382 rd4c5de7  
    2323fvec_t * mfcc_out;
    2424aubio_mfcc_t * mfcc;
     25aubio_pvoc_t *pv;
     26cvec_t *fftgrain;
    2527
    2628uint_t n_filters = 40;
     
    2830
    2931unsigned int pos = 0; /*frames%dspblocksize*/
    30 uint_t usepitch = 0;
    3132
    32 int aubio_process(smpl_t **input, smpl_t **output, int nframes);
    33 int aubio_process(smpl_t **input, smpl_t **output, int nframes) {
     33static int aubio_process(smpl_t **input, smpl_t **output, int nframes) {
    3434  unsigned int i;       /*channels*/
    3535  unsigned int j;       /*frames*/
     
    6262}
    6363
    64 void process_print (void);
    65 void process_print (void) {
     64static void process_print (void) {
    6665      /* output times in seconds
    6766         write extracted mfccs
     
    8483 
    8584  examples_common_init(argc,argv);
     85
     86  /* phase vocoder */
     87  pv = new_aubio_pvoc (buffer_size, overlap_size, channels);
     88
     89  fftgrain = new_cvec (buffer_size, channels);
     90
     91  //populating the filter
     92  mfcc = new_aubio_mfcc(buffer_size, n_filters, n_coefs, samplerate);
     93 
    8694  mfcc_out = new_fvec(n_coefs,channels);
    87  
    88  
    89   //populating the filter
    90   mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs);
    9195 
    9296  //process
     
    9498 
    9599  //destroying mfcc
     100  del_aubio_pvoc (pv);
     101  del_cvec (fftgrain);
    96102  del_aubio_mfcc(mfcc);
    97103  del_fvec(mfcc_out);
Note: See TracChangeset for help on using the changeset viewer.