From bf77b95ec9446e1260a6487549c4d3bca5f0790d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 5 Aug 2023 02:54:09 -0500 Subject: [PATCH] GUI: wake up on osc --- src/gui/osc.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/gui/osc.cpp b/src/gui/osc.cpp index 5e3e88a9..294339f9 100644 --- a/src/gui/osc.cpp +++ b/src/gui/osc.cpp @@ -94,29 +94,11 @@ void FurnaceGUI::readOsc() { } } - /* - for (int i=0; igetAudioDescGot().outChans; j++) { - avg+=e->oscBuf[j][pos]; - } - avg/=e->getAudioDescGot().outChans; - - //oscInput+=(avg-oscInput)*cut; - //oscInput1+=(oscInput1-oscInput)*cut; - - oscInput=avg; - - for (int j=(i*oscWidth)/winSize; j<((i+1)*oscWidth)/winSize; j++) { - if (j>=oscWidth) break; - oscValues[j]=oscInput; - } - - if (avg>0.001f || avg<-0.001f) { + for (int i=0; i0.001f || oscValues[i]<-0.001f) { WAKE_UP; } - }*/ + } /*for (int i=0; i