- Timestamp:
- Sep 16, 2007, 6:28:55 PM (17 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:
- aa83433
- Parents:
- 177f09a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
r177f09a raeb38cf 54 54 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 62 56 /* end of block loop */ 63 57 pos = -1; /* so it will be zero next j loop */ … … 76 70 uint_t coef_cnt; 77 71 if (output_filename == NULL) { 78 // if(frames >= 4) { 79 // outmsg("%f\t",(frames-4)*overlap_size/(float)samplerate); 80 // } 81 // else if (frames < 4) { 82 // outmsg("%f\t",0.); 83 // } 84 //outmsg("%f ",mfcc_out->data[0][0]); 85 86 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 } 78 for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) { 79 outmsg("%f ",mfcc_out->data[0][coef_cnt]); 80 } 81 outmsg("\n"); 87 82 } 88 83 } … … 99 94 //populating the filter 100 95 mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels); 101 dump_filterbank(mfcc);102 103 96 104 97 //process
Note: See TracChangeset
for help on using the changeset viewer.