Changeset d4c5de7 for examples/aubiomfcc.c
- Timestamp:
- Oct 16, 2009, 11:03:08 PM (15 years ago)
- 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:
- 6107f4c
- Parents:
- 2828382
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
r2828382 rd4c5de7 23 23 fvec_t * mfcc_out; 24 24 aubio_mfcc_t * mfcc; 25 aubio_pvoc_t *pv; 26 cvec_t *fftgrain; 25 27 26 28 uint_t n_filters = 40; … … 28 30 29 31 unsigned int pos = 0; /*frames%dspblocksize*/ 30 uint_t usepitch = 0;31 32 32 int aubio_process(smpl_t **input, smpl_t **output, int nframes); 33 int aubio_process(smpl_t **input, smpl_t **output, int nframes) { 33 static int aubio_process(smpl_t **input, smpl_t **output, int nframes) { 34 34 unsigned int i; /*channels*/ 35 35 unsigned int j; /*frames*/ … … 62 62 } 63 63 64 void process_print (void); 65 void process_print (void) { 64 static void process_print (void) { 66 65 /* output times in seconds 67 66 write extracted mfccs … … 84 83 85 84 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 86 94 mfcc_out = new_fvec(n_coefs,channels); 87 88 89 //populating the filter90 mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs);91 95 92 96 //process … … 94 98 95 99 //destroying mfcc 100 del_aubio_pvoc (pv); 101 del_cvec (fftgrain); 96 102 del_aubio_mfcc(mfcc); 97 103 del_fvec(mfcc_out);
Note: See TracChangeset
for help on using the changeset viewer.