Changeset 19f1dc9
- Timestamp:
- Oct 6, 2009, 5:06:30 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:
- 9facc27
- Parents:
- a9e27e4
- Location:
- examples
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubioonset.c
ra9e27e4 r19f1dc9 44 44 onset->data[0][0] *= onset2->data[0][0]; 45 45 } 46 isonset = aubio_peakpick _pimrt(onset,parms);46 isonset = aubio_peakpicker_do(parms, onset); 47 47 if (isonset) { 48 48 /* test for silence */ 49 49 if (aubio_silence_detection(ibuf, silence)==1) 50 isonset=0 ;50 isonset=0.; 51 51 else 52 52 for (pos = 0; pos < overlap_size; pos++){ … … 72 72 if (isonset && output_filename == NULL) { 73 73 if(frames >= 4) { 74 outmsg("%f\n",(frames -frames_delay)*overlap_size/(float)samplerate);74 outmsg("%f\n",(frames - frames_delay + isonset)*overlap_size/(float)samplerate); 75 75 } else if (frames < frames_delay) { 76 76 outmsg("%f\n",0.); … … 80 80 81 81 int main(int argc, char **argv) { 82 frames_delay = 4;82 frames_delay = 3; 83 83 examples_common_init(argc,argv); 84 84 examples_common_process(aubio_process,process_print); -
examples/utils.c
ra9e27e4 r19f1dc9 68 68 fvec_t *onset; 69 69 fvec_t *onset2; 70 int isonset = 0;70 smpl_t isonset = 0; 71 71 aubio_pickpeak_t *parms; 72 72 -
examples/utils.h
ra9e27e4 r19f1dc9 101 101 extern fvec_t *onset; 102 102 extern fvec_t *onset2; 103 extern int isonset;103 extern smpl_t isonset; 104 104 extern aubio_pickpeak_t *parms; 105 105
Note: See TracChangeset
for help on using the changeset viewer.