- Timestamp:
- Sep 11, 2007, 9:25:43 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:
- 83d5abf
- Parents:
- ef1c3b7
- Location:
- examples
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
ref1c3b7 rf72ceeb 24 24 aubio_mfcc_t * mfcc; 25 25 26 uint_t n_filters = 20;27 uint_t n_coefs = 11;26 uint_t n_filters = 40; 27 uint_t n_coefs = 20; 28 28 29 29 unsigned int pos = 0; /*frames%dspblocksize*/ … … 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 } … … 93 96 mfcc_out = new_fvec(n_coefs,channels); 94 97 98 95 99 //populating the filter 96 100 mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels); 97 101 dump_filterbank(mfcc); 102 98 103 99 104 //process -
examples/plotfb.py
ref1c3b7 rf72ceeb 5 5 import sys 6 6 7 7 8 filename=sys.argv[1] 9 10 doLog=False 11 if len(sys.argv)>2: 12 if sys.argv[2]=='log': 13 doLog=True 8 14 9 15 mat = pylab.load(filename) … … 15 21 n_filters=numpy.shape(nmat)[0] 16 22 for i in range(n_filters): 17 pylab.plot(nmat[i,:]) 23 if doLog==True: 24 pylab.semilogx(nmat[i,:]) 25 else: 26 pylab.plot(nmat[i,:]) 18 27 19 28 -
examples/utils.c
ref1c3b7 rf72ceeb 40 40 smpl_t threshold = 0.3; 41 41 smpl_t silence = -90.; 42 uint_t buffer_size = 512; //1024; 43 uint_t overlap_size = 256; //512; 42 // uint_t buffer_size = 512; 43 // uint_t overlap_size = 256; 44 uint_t buffer_size = 1024; 45 uint_t overlap_size = 512; 44 46 uint_t channels = 1; 45 47 uint_t samplerate = 44100;
Note: See TracChangeset
for help on using the changeset viewer.