projects
/
ofxAubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
979812e
)
src/ofxAubioOnset.cpp: set self.threshold
author
Paul Brossier
<piem@piem.org>
Sun, 25 Oct 2015 04:39:51 +0000
(
05:39
+0100)
committer
Paul Brossier
<piem@piem.org>
Sun, 25 Oct 2015 04:39:51 +0000
(
05:39
+0100)
src/ofxAubioOnset.cpp
patch
|
blob
|
history
diff --git
a/src/ofxAubioOnset.cpp
b/src/ofxAubioOnset.cpp
index
a0c49f9
..
51cb843
100644
(file)
--- 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
t
hreshold)
+void ofxAubioOnset::setThreshold(float
newT
hreshold)
{
- aubio_onset_set_threshold(onset, threshold);
+ aubio_onset_set_threshold(onset, newThreshold);
+ threshold = newThreshold;
}