Changeset 6e57c2e for src/onset/peakpick.h
- Timestamp:
- Nov 5, 2009, 11:17:56 PM (14 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:
- e5b9a46
- Parents:
- 48b6a52
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/peakpick.h
r48b6a52 r6e57c2e 32 32 #endif 33 33 34 /** function pointer to thresholding function */35 typedef smpl_t (*aubio_thresholdfn_t)(fvec_t *input, uint_t channel);36 /** function pointer to peak-picking function */37 typedef uint_t (*aubio_pickerfn_t)(fvec_t *input, uint_t pos);38 34 /** peak-picker structure */ 39 35 typedef struct _aubio_peakpicker_t aubio_peakpicker_t; … … 43 39 /** real time peak picking function */ 44 40 void aubio_peakpicker_do(aubio_peakpicker_t * p, fvec_t * in, fvec_t * out); 45 /** get current peak value */46 smpl_t aubio_peakpicker_get_thresholded_input(aubio_peakpicker_t * p);47 41 /** destroy peak picker structure */ 48 42 void del_aubio_peakpicker(aubio_peakpicker_t * p); 49 43 44 /** get current peak value */ 45 fvec_t *aubio_peakpicker_get_thresholded_input (aubio_peakpicker_t * p); 50 46 /** set peak picking threshold */ 51 47 uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold); 52 48 /** get peak picking threshold */ 53 49 smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p); 54 /** set peak picker thresholding function */55 uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn);56 /** get peak picker thresholding function */57 aubio_thresholdfn_t aubio_peakpicker_get_thresholdfn(aubio_peakpicker_t * p);58 50 59 51 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.