src/ofxAubioOnset.cpp: set self.threshold
authorPaul Brossier <piem@piem.org>
Sun, 25 Oct 2015 04:39:51 +0000 (05:39 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 25 Oct 2015 04:39:51 +0000 (05:39 +0100)
src/ofxAubioOnset.cpp

index a0c49f9..51cb843 100644 (file)
@@ -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;
 }