return;
}
+smpl_t aubio_onset_get_descriptor(aubio_onset_t * o) {
+ return o->of->data[0];
+}
+
+smpl_t aubio_onset_get_thresholded_descriptor(aubio_onset_t * o) {
+ fvec_t * thresholded = aubio_peakpicker_get_thresholded_input(o->pp);
+ return thresholded->data[0];
+}
+
uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence) {
o->silence = silence;
return AUBIO_OK;
*/
uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
+/** get onset detection function
+
+ \param o onset detection object as returned by new_aubio_onset
+ \return the current value of the descriptor
+
+*/
+smpl_t aubio_onset_get_descriptor ( aubio_onset_t *o);
+
+/** get thresholded onset detection function
+
+ \param o onset detection object as returned by new_aubio_onset
+ \return the value of the thresholded descriptor
+
+*/
+smpl_t aubio_onset_get_thresholded_descriptor ( aubio_onset_t *o);
+
/** set onset detection peak picking threshold
\param o onset detection object as returned by new_aubio_onset