src/onset/onset.h: add aubio_onset_get_silence()
authorPaul Brossier <piem@piem.org>
Sat, 20 Sep 2014 13:30:51 +0000 (10:30 -0300)
committerPaul Brossier <piem@piem.org>
Sat, 20 Sep 2014 13:30:51 +0000 (10:30 -0300)
src/onset/onset.c
src/onset/onset.h

index 8ffcf1f..98660aa 100644 (file)
@@ -99,6 +99,10 @@ uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence) {
   return AUBIO_OK;
 }
 
   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;
 uint_t aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold) {
   aubio_peakpicker_set_threshold(o->pp, threshold);
   return AUBIO_OK;
index 9dbe97a..cda8d9a 100644 (file)
@@ -125,6 +125,15 @@ smpl_t aubio_onset_get_last_ms (aubio_onset_t *o);
 */
 uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
 
 */
 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()
 /** get onset detection function
 
   \param o onset detection object as returned by new_aubio_onset()