From: Paul Brossier Date: Sun, 25 Oct 2015 04:39:51 +0000 (+0100) Subject: src/ofxAubioOnset.cpp: set self.threshold X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=1d0e79f97a340b32f97b198fe98acbae4eed325e;p=ofxAubio.git src/ofxAubioOnset.cpp: set self.threshold --- 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; }