Changeset 0f6f2e6
- Timestamp:
- Oct 5, 2009, 7:40:45 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:
- 998a8be
- Parents:
- eebb0e1
- Location:
- src/onset
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onset.c
reebb0e1 r0f6f2e6 52 52 }*/ 53 53 isonset = aubio_peakpick_pimrt(o->of,o->pp); 54 if (isonset ) {54 if (isonset > 0.) { 55 55 if (aubio_silence_detection(input, o->silence)==1) { 56 56 isonset = 0; -
src/onset/peakpick.c
reebb0e1 r0f6f2e6 68 68 * is slightly more permissive than the offline one, and yelds to an increase 69 69 * of false positives. best */ 70 uint_t aubio_peakpick_pimrt(fvec_t * onset, aubio_pickpeak_t * p) {70 smpl_t aubio_peakpick_pimrt(fvec_t * onset, aubio_pickpeak_t * p) { 71 71 fvec_t * onset_keep = (fvec_t *)p->onset_keep; 72 72 fvec_t * onset_proc = (fvec_t *)p->onset_proc; … … 74 74 fvec_t * scratch = (fvec_t *)p->scratch; 75 75 smpl_t mean = 0., median = 0.; 76 smpl_t isonset = 0.; 76 77 uint_t length = p->win_post + p->win_pre + 1; 77 78 uint_t i = 0, j; … … 110 111 /* } */ 111 112 //AUBIO_DBG("%f\n", onset_peek->data[0][2]); 112 return (p->pickerfn)(onset_peek,1); 113 isonset = (p->pickerfn)(onset_peek,1); 114 if (isonset) { //(isonset) { 115 isonset = fvec_quadint(onset_peek, 1, 1); 116 } 117 return isonset; 113 118 } 114 119 -
src/onset/peakpick.h
reebb0e1 r0f6f2e6 41 41 aubio_pickpeak_t * new_aubio_peakpicker(smpl_t threshold); 42 42 /** real time peak picking function */ 43 uint_t aubio_peakpick_pimrt(fvec_t * DF, aubio_pickpeak_t * p);43 smpl_t aubio_peakpick_pimrt(fvec_t * DF, aubio_pickpeak_t * p); 44 44 /** function added by Miguel Ramirez to return the onset detection amplitude in peakval */ 45 45 uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval );
Note: See TracChangeset
for help on using the changeset viewer.