Changeset f1b925e
- Timestamp:
- Oct 16, 2009, 4:26:05 AM (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:
- 240e416
- Parents:
- 0a257a6
- Location:
- src/onset
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/peakpick.c
r0a257a6 rf1b925e 127 127 128 128 /** function added by Miguel Ramirez to return the onset detection amplitude in peakval */ 129 voidaubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold) {129 uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold) { 130 130 p->threshold = threshold; 131 return ;131 return AUBIO_OK; 132 132 } 133 133 … … 136 136 } 137 137 138 voidaubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn) {138 uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn) { 139 139 p->thresholdfn = thresholdfn; 140 return ;140 return AUBIO_OK; 141 141 } 142 142 -
src/onset/peakpick.h
r0a257a6 rf1b925e 48 48 49 49 /** set peak picking threshold */ 50 voidaubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);50 uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold); 51 51 /** get peak picking threshold */ 52 52 smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p); 53 53 /** set peak picker thresholding function */ 54 voidaubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn);54 uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn); 55 55 /** get peak picker thresholding function */ 56 56 aubio_thresholdfn_t aubio_peakpicker_get_thresholdfn(aubio_peakpicker_t * p);
Note: See TracChangeset
for help on using the changeset viewer.