Changeset 4621cd6 for examples/aubioquiet.c
- Timestamp:
- Dec 4, 2009, 1:46:40 AM (14 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:
- aea235c
- Parents:
- c17a0ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubioquiet.c
rc17a0ee r4621cd6 26 26 int aubio_process(smpl_t **input, smpl_t **output, int nframes); 27 27 int aubio_process(smpl_t **input, smpl_t **output, int nframes) { 28 unsigned int i; /*channels*/29 28 unsigned int j; /*frames*/ 30 29 for (j=0;j<(unsigned)nframes;j++) { 31 30 if(usejack) { 32 for (i=0;i<channels;i++) { 33 /* write input to datanew */ 34 fvec_write_sample(ibuf, input[i][j], i, pos); 35 /* put synthnew in output */ 36 output[i][j] = fvec_read_sample(obuf, i, pos); 37 } 31 /* write input to datanew */ 32 fvec_write_sample(ibuf, input[0][j], pos); 33 /* put synthnew in output */ 34 output[0][j] = fvec_read_sample(obuf, pos); 38 35 } 39 36 /*time for fft*/ … … 41 38 /* test for silence */ 42 39 if (aubio_silence_detection(ibuf, silence)==1) { 43 44 40 if (wassilence==1) issilence = 1; 41 else issilence = 2; 45 42 wassilence=1; 46 43 } else { 47 48 44 if (wassilence<=0) issilence = 0; 45 else issilence = -1; 49 46 wassilence=0; 50 47 }
Note: See TracChangeset
for help on using the changeset viewer.