Changeset 2a77ff0
- Timestamp:
- Sep 8, 2007, 3:46:26 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:
- 53a7576
- Parents:
- 3504fd7f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
r3504fd7f r2a77ff0 20 20 21 21 /* mfcc objects */ 22 fvec_t * mfcc_out buf;22 fvec_t * mfcc_out; 23 23 aubio_mfcc_t * mfcc; 24 24 … … 48 48 49 49 //compute mfccs 50 aubio_mfcc_do(mfcc, fftgrain, mfcc_out buf);50 aubio_mfcc_do(mfcc, fftgrain, mfcc_out); 51 51 52 52 /* end of block loop */ … … 64 64 */ 65 65 66 uint_t filter_cnt; 66 67 if (output_filename == NULL) { 67 68 if(frames >= 4) { 68 outmsg("%f\ n",(frames-4)*overlap_size/(float)samplerate);69 outmsg("%f\t",(frames-4)*overlap_size/(float)samplerate); 69 70 } else if (frames < 4) { 70 outmsg("%f\ n",0.);71 outmsg("%f\t",0.); 71 72 } 73 outmsg("%f",mfcc_out->data[0][0]); 74 for (filter_cnt = 1; filter_cnt < mfcc_out->length; filter_cnt++) { 75 outmsg(",%f",mfcc_out->data[0][filter_cnt]); 76 } 77 outmsg("\n"); 72 78 } 73 79 } … … 79 85 smpl_t highfreq = 2000.; 80 86 examples_common_init(argc,argv); 81 mfcc_out buf= new_fvec(n_filters,channels);87 mfcc_out = new_fvec(n_filters,channels); 82 88 83 89 //populating the filter … … 93 99 //destroying mfcc 94 100 del_aubio_mfcc(mfcc); 95 del_fvec(mfcc_out buf);101 del_fvec(mfcc_out); 96 102 97 103 return 0;
Note: See TracChangeset
for help on using the changeset viewer.