Changeset f1b925e


Ignore:
Timestamp:
Oct 16, 2009, 4:26:05 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

src/onset/peakpick.{c,h}: setters to return uint

Location:
src/onset
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/onset/peakpick.c

    r0a257a6 rf1b925e  
    127127
    128128/** function added by Miguel Ramirez to return the onset detection amplitude in peakval */
    129 void aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold) {
     129uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold) {
    130130        p->threshold = threshold;
    131         return;
     131        return AUBIO_OK;
    132132}
    133133
     
    136136}
    137137
    138 void aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn) {
     138uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn) {
    139139        p->thresholdfn = thresholdfn;
    140         return;
     140        return AUBIO_OK;
    141141}
    142142
  • src/onset/peakpick.h

    r0a257a6 rf1b925e  
    4848
    4949/** set peak picking threshold */
    50 void aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);
     50uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);
    5151/** get peak picking threshold */
    5252smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p);
    5353/** set peak picker thresholding function */
    54 void aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn);
     54uint_t aubio_peakpicker_set_thresholdfn(aubio_peakpicker_t * p, aubio_thresholdfn_t thresholdfn);
    5555/** get peak picker thresholding function */
    5656aubio_thresholdfn_t aubio_peakpicker_get_thresholdfn(aubio_peakpicker_t * p);
Note: See TracChangeset for help on using the changeset viewer.