GUI: for real this time

This commit is contained in:
tildearrow 2023-09-07 15:41:02 -05:00
parent 7691626952
commit 3cc066ed26

View file

@ -58,10 +58,12 @@ void FurnaceGUI::readOsc() {
float* sincITable=DivFilterTables::getSincIntegralTable();
float posFrac=0.0;
int posInt=oscReadPos;
int posInt=oscReadPos-8;
float factor=(float)oscWidth/(float)winSize;
for (int i=0; i<oscWidth; i++) {
for (int i=-8; i<oscWidth+8; i++) {
if (i>=0 && i<oscWidth) {
oscValues[ch][i]+=e->oscBuf[ch][posInt&0x7fff];
}
posFrac+=1.0;
while (posFrac>=1.0) {