Changeset f2adb86
- Timestamp:
- Dec 22, 2005, 5:30:24 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:
- de92b1c
- Parents:
- 4f4a8a4
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/peakpick.c
r4f4a8a4 rf2adb86 113 113 } 114 114 115 /** this method returns the current value in the pick peaking buffer 116 * after smoothing 117 */ 118 smpl_t aubio_peakpick_pimrt_getval(aubio_pickpeak_t * p) 119 { 120 uint_t i = 0; 121 return p->onset_peek->data[i][1]; 122 } 123 115 124 /** function added by Miguel Ramirez to return the onset detection amplitude in peakval */ 116 125 uint_t aubio_peakpick_pimrt_wt(fvec_t * onset, aubio_pickpeak_t * p, smpl_t* peakval) 117 126 { 118 uint_t i = 0, isonset = 0;127 uint_t isonset = 0; 119 128 isonset = aubio_peakpick_pimrt(onset,p); 120 129 121 130 //if ( isonset && peakval != NULL ) 122 131 if ( peakval != NULL ) 123 *peakval = p->onset_peek->data[i][1];132 *peakval = aubio_peakpick_pimrt_getval(p); 124 133 125 134 return isonset; -
src/peakpick.h
r4f4a8a4 rf2adb86 39 39 /** function added by Miguel Ramirez to return the onset detection amplitude in peakval */ 40 40 uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval ); 41 smpl_t aubio_peakpick_pimrt_getval(aubio_pickpeak_t * p); 41 42 void del_aubio_peakpicker(aubio_pickpeak_t * p); 42 43
Note: See TracChangeset
for help on using the changeset viewer.