From 1d0e79f97a340b32f97b198fe98acbae4eed325e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 25 Oct 2015 05:39:51 +0100 Subject: [PATCH] src/ofxAubioOnset.cpp: set self.threshold --- src/ofxAubioOnset.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ofxAubioOnset.cpp b/src/ofxAubioOnset.cpp index a0c49f9..51cb843 100644 --- a/src/ofxAubioOnset.cpp +++ b/src/ofxAubioOnset.cpp @@ -63,7 +63,8 @@ void ofxAubioOnset::blockAudioIn() thresholdedNovelty = aubio_onset_get_thresholded_descriptor(onset); } -void ofxAubioOnset::setThreshold(float threshold) +void ofxAubioOnset::setThreshold(float newThreshold) { - aubio_onset_set_threshold(onset, threshold); + aubio_onset_set_threshold(onset, newThreshold); + threshold = newThreshold; } -- 2.11.0