- Timestamp:
- Jul 6, 2006, 6:38:00 PM (19 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:
- 92eea84
- Parents:
- 55c6da4
- Location:
- examples
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r55c6da4 r660cad22 52 52 53 53 /* curlevel is negatif or 1 if silence */ 54 curlevel = aubio_level_detection(ibuf, threshold2);54 curlevel = aubio_level_detection(ibuf, silence); 55 55 if (isonset) { 56 56 /* test for silence */ -
examples/aubioonset.c
r55c6da4 r660cad22 47 47 if (isonset) { 48 48 /* test for silence */ 49 if (aubio_silence_detection(ibuf, threshold2)==1)49 if (aubio_silence_detection(ibuf, silence)==1) 50 50 isonset=0; 51 51 else -
examples/aubioquiet.c
r55c6da4 r660cad22 39 39 if (pos == overlap_size-1) { 40 40 /* test for silence */ 41 if (aubio_silence_detection(ibuf, threshold2)==1) {41 if (aubio_silence_detection(ibuf, silence)==1) { 42 42 if (wassilence==1) issilence = 1; 43 43 else issilence = 2; -
examples/aubiotrack.c
r55c6da4 r660cad22 85 85 //60.*44100./overlap_size/abs(btoutput[2]-btoutput[1])); 86 86 /* test for silence */ 87 if (aubio_silence_detection(ibuf, threshold2)==1) {87 if (aubio_silence_detection(ibuf, silence)==1) { 88 88 isonset = 0; 89 89 istactus = 0; -
examples/utils.c
r55c6da4 r660cad22 39 39 aubio_onsetdetection_type type_onset2 = aubio_onset_complex; 40 40 smpl_t threshold = 0.3; 41 smpl_t threshold2= -90.;41 smpl_t silence = -90.; 42 42 uint_t buffer_size = 512; //1024; 43 43 uint_t overlap_size = 256; //512; … … 178 178 break; 179 179 case 's': /* threshold value for onset */ 180 threshold2= (smpl_t)atof(optarg);180 silence = (smpl_t)atof(optarg); 181 181 break; 182 182 case 't': /* threshold value for onset */ -
examples/utils.h
r55c6da4 r660cad22 76 76 extern aubio_onsetdetection_type type_onset2; 77 77 extern smpl_t threshold; 78 extern smpl_t threshold2;78 extern smpl_t silence; 79 79 extern uint_t buffer_size; 80 80 extern uint_t overlap_size;
Note: See TracChangeset
for help on using the changeset viewer.