Changeset b901228
- Timestamp:
- Sep 23, 2009, 7:50:40 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:
- f50cd286
- Parents:
- 000b090
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
r000b090 rb901228 25 25 26 26 uint_t n_filters = 40; 27 uint_t n_coefs = 1 1;27 uint_t n_coefs = 13; 28 28 29 29 unsigned int pos = 0; /*frames%dspblocksize*/ … … 70 70 uint_t coef_cnt; 71 71 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); 78 73 for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) { 79 74 outmsg("%f ",mfcc_out->data[0][coef_cnt]); … … 85 80 int main(int argc, char **argv) { 86 81 // params 87 buffer_size = 1024;88 overlap_size = 512;82 buffer_size = 512; 83 overlap_size = 256; 89 84 90 85 examples_common_init(argc,argv); 91 smpl_t lowfreq = 133.333f;92 smpl_t highfreq = 44100.f;93 86 mfcc_out = new_fvec(n_coefs,channels); 94 87 95 88 96 89 //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); 98 91 99 92 //process
Note: See TracChangeset
for help on using the changeset viewer.