Changeset 0e0a049
- Timestamp:
- Oct 25, 2009, 9:33:24 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:
- b616ffe
- Parents:
- a17e8c9
- Location:
- examples
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiomfcc.c
ra17e8c9 r0e0a049 71 71 outmsg("%f\t",frames*overlap_size/(float)samplerate); 72 72 for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) { 73 outmsg("%f ", mfcc_out->data[0][coef_cnt]);73 outmsg("%f ", fvec_read_sample (mfcc_out, 0, coef_cnt) ); 74 74 } 75 75 outmsg("\n"); -
examples/aubioonset.c
ra17e8c9 r0e0a049 41 41 aubio_onset_do (o, ibuf, onset); 42 42 if (fvec_read_sample(onset, 0, 0)) { 43 for (pos = 0; pos < overlap_size; pos++){ 44 obuf->data[0][pos] = woodblock->data[0][pos]; 45 } 43 fvec_copy (woodblock, obuf); 46 44 } else { 47 for (pos = 0; pos < overlap_size; pos++) { 48 obuf->data[0][pos] = 0.; 49 } 45 fvec_zeros (obuf); 50 46 } 51 47 /* end of block loop */ -
examples/aubiopitch.c
ra17e8c9 r0e0a049 42 42 if (fvec_read_sample(pitch, 0, 0)) { 43 43 for (pos = 0; pos < overlap_size; pos++){ 44 obuf->data[0][pos] = woodblock->data[0][pos];44 // TODO, play sine at this freq 45 45 } 46 46 } else { 47 for (pos = 0; pos < overlap_size; pos++) { 48 obuf->data[0][pos] = 0.; 49 } 47 fvec_zeros (obuf); 50 48 } 51 49 /* end of block loop */ -
examples/aubiotrack.c
ra17e8c9 r0e0a049 42 42 /* block loop */ 43 43 aubio_tempo_do (bt,ibuf,tempo_out); 44 if (tempo_out->data[0][0]>0) 45 istactus = tempo_out->data[0][0]; 46 else 47 istactus = 0; 48 if (tempo_out->data[0][1]>0) 49 isonset = tempo_out->data[0][0]; 50 else 51 isonset = 0; 52 if (istactus) { 53 for (pos = 0; pos < overlap_size; pos++) 54 obuf->data[0][pos] = woodblock->data[0][pos]; 44 istactus = fvec_read_sample (tempo_out, 0, 0); 45 isonset = fvec_read_sample (tempo_out, 0, 1); 46 if (istactus > 0.) { 47 fvec_copy (woodblock, obuf); 55 48 } else { 56 for (pos = 0; pos < overlap_size; pos++) 57 obuf->data[0][pos] = 0.; 49 fvec_zeros (obuf); 58 50 } 59 51 /* end of block loop */
Note: See TracChangeset
for help on using the changeset viewer.