projects
/
ofxAubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0afad9
)
example_aubioDemo/: update pitch only if not null
author
Paul Brossier
<piem@piem.org>
Fri, 30 Oct 2015 15:58:08 +0000
(16:58 +0100)
committer
Paul Brossier
<piem@piem.org>
Fri, 30 Oct 2015 15:58:08 +0000
(16:58 +0100)
example_aubioDemo/src/ofApp.cpp
patch
|
blob
|
history
diff --git
a/example_aubioDemo/src/ofApp.cpp
b/example_aubioDemo/src/ofApp.cpp
index
16b7ba4
..
5b80bb6
100644
(file)
--- a/
example_aubioDemo/src/ofApp.cpp
+++ b/
example_aubioDemo/src/ofApp.cpp
@@
-100,7
+100,7
@@
void ofApp::draw(){
// update pitch info
pitchConfidence = pitch.pitchConfidence;
- if (pitch
Confidence > 0.7
) midiPitch = pitch.latestPitch;
+ if (pitch
.latestPitch
) midiPitch = pitch.latestPitch;
bpm = beat.bpm;
// draw