From 8f943e7eb29bae438f7e27b4c1e884744043f092 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 30 Oct 2015 16:58:08 +0100 Subject: [PATCH] example_aubioDemo/: update pitch only if not null --- example_aubioDemo/src/ofApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_aubioDemo/src/ofApp.cpp b/example_aubioDemo/src/ofApp.cpp index 16b7ba4..5b80bb6 100644 --- 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 (pitchConfidence > 0.7) midiPitch = pitch.latestPitch; + if (pitch.latestPitch) midiPitch = pitch.latestPitch; bpm = beat.bpm; // draw -- 2.11.0