GUI: wake up on osc

This commit is contained in:
tildearrow 2023-08-05 02:54:09 -05:00
parent 1d4a1c8337
commit bf77b95ec9

View file

@ -94,29 +94,11 @@ void FurnaceGUI::readOsc() {
} }
} }
/* for (int i=0; i<oscWidth; i++) {
for (int i=0; i<winSize; i++) { if (oscValues[i]>0.001f || oscValues[i]<-0.001f) {
int pos=(oscReadPos+i)&0x7fff;
float avg=0.0f;
for (int j=0; j<e->getAudioDescGot().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) {
WAKE_UP; WAKE_UP;
} }
}*/ }
/*for (int i=0; i<oscWidth; i++) { /*for (int i=0; i<oscWidth; i++) {
oscValues[i]=(i&1)?0.3:0; oscValues[i]=(i&1)?0.3:0;