ref: 96a96d7b3809281d167ad3ec588111653eb53345
parent: ffc1f7927a9ec244b1722613c4dd93cd091ef8e4
author: Paul Brossier <piem@piem.org>
date: Sat Sep 20 06:30:51 EDT 2014
src/onset/onset.h: add aubio_onset_get_silence()
--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -99,6 +99,10 @@
return AUBIO_OK;
}
+smpl_t aubio_onset_get_silence(aubio_onset_t * o) {
+ return o->silence;
+}
+
uint_t aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold) {
aubio_peakpicker_set_threshold(o->pp, threshold);
return AUBIO_OK;
--- a/src/onset/onset.h
+++ b/src/onset/onset.h
@@ -125,6 +125,15 @@
*/
uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
+/** get onset detection silence threshold
+
+ \param o onset detection object as returned by new_aubio_onset()
+
+ \return current silence threshold
+
+*/
+smpl_t aubio_onset_get_silence(aubio_onset_t * o);
+
/** get onset detection function
\param o onset detection object as returned by new_aubio_onset()