mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +00:00
GUI: wake up on osc
This commit is contained in:
parent
1d4a1c8337
commit
bf77b95ec9
1 changed files with 3 additions and 21 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue