whaaaaaaaaa

This commit is contained in:
tildearrow 2021-12-27 17:05:03 -05:00
parent 772aac5806
commit eb28f7f7f1

View file

@ -525,15 +525,25 @@ void DivEngine::processRow(int i, bool afterDelay) {
for (int i=0; i<chans; i++) {
chan[i].pitch-=globalPitch;
}
// what is this mess?
// are you for real? how does this effect even work?!
if (effectVal>0x80) {
for (int i=0; i<effectVal-0x80; i++) {
if (globalPitch<=0) {
globalPitch+=(120-(8*globalPitch)/55);
} else {
globalPitch+=(120-globalPitch/32);
}
}
} else if (effectVal<0x80) {
for (int i=0; i<0x80-effectVal; i++) {
if (globalPitch<=0) {
globalPitch-=(120-(8*globalPitch)/55);
} else {
globalPitch-=(120-globalPitch/32);
}
}
}
for (int i=0; i<chans; i++) {
chan[i].pitch+=globalPitch;
}