Changeset ae81726


Ignore:
Timestamp:
Feb 12, 2013, 8:06:31 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
f36277c
Parents:
b0d5a48
Message:

src/onset/onset.{c,h}: added get_descriptor and get_thresholded_descriptor

Location:
src/onset
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    rb0d5a48 rae81726  
    7373}
    7474
     75smpl_t aubio_onset_get_descriptor(aubio_onset_t * o) {
     76    return o->of->data[0];
     77}
     78
     79smpl_t aubio_onset_get_thresholded_descriptor(aubio_onset_t * o) {
     80    fvec_t * thresholded = aubio_peakpicker_get_thresholded_input(o->pp);
     81    return thresholded->data[0];
     82}
     83
    7584uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence) {
    7685  o->silence = silence;
  • src/onset/onset.h

    rb0d5a48 rae81726  
    7373uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
    7474
     75/** get onset detection function
     76
     77  \param o onset detection object as returned by new_aubio_onset
     78  \return the current value of the descriptor
     79
     80*/
     81smpl_t aubio_onset_get_descriptor ( aubio_onset_t *o);
     82
     83/** get thresholded onset detection function
     84
     85  \param o onset detection object as returned by new_aubio_onset
     86  \return the value of the thresholded descriptor
     87
     88*/
     89smpl_t aubio_onset_get_thresholded_descriptor ( aubio_onset_t *o);
     90
    7591/** set onset detection peak picking threshold
    7692
Note: See TracChangeset for help on using the changeset viewer.