Changeset 787f1f3 for examples/aubiomfcc.c
- Timestamp:
- Sep 12, 2007, 5:55:48 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:
- 95a64c7
- Parents:
- 7a46bf6 (diff), 83d5abf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
r7a46bf6 r787f1f3 24 24 aubio_mfcc_t * mfcc; 25 25 26 uint_t n_filters = 20;26 uint_t n_filters = 40; 27 27 uint_t n_coefs = 11; 28 28 … … 53 53 //compute mfccs 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 56 62 /* end of block loop */ 57 63 pos = -1; /* so it will be zero next j loop */ … … 78 84 //outmsg("%f ",mfcc_out->data[0][0]); 79 85 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 84 87 } 85 88 } … … 87 90 int main(int argc, char **argv) { 88 91 // params 89 //uint_t n_filters = 40; 90 //uint_t n_coefs = 15; 91 92 92 93 examples_common_init(argc,argv); 93 94 smpl_t lowfreq = 133.333f; … … 95 96 mfcc_out = new_fvec(n_coefs,channels); 96 97 98 97 99 //populating the filter 98 100 mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels); 99 101 dump_filterbank(mfcc); 102 103 100 104 //process 101 105 examples_common_process(aubio_process,process_print);
Note: See TracChangeset
for help on using the changeset viewer.