whaaaaaaaaa
This commit is contained in:
parent
772aac5806
commit
eb28f7f7f1
|
@ -525,15 +525,25 @@ void DivEngine::processRow(int i, bool afterDelay) {
|
||||||
for (int i=0; i<chans; i++) {
|
for (int i=0; i<chans; i++) {
|
||||||
chan[i].pitch-=globalPitch;
|
chan[i].pitch-=globalPitch;
|
||||||
}
|
}
|
||||||
|
// what is this mess?
|
||||||
|
// are you for real? how does this effect even work?!
|
||||||
if (effectVal>0x80) {
|
if (effectVal>0x80) {
|
||||||
for (int i=0; i<effectVal-0x80; i++) {
|
for (int i=0; i<effectVal-0x80; i++) {
|
||||||
|
if (globalPitch<=0) {
|
||||||
|
globalPitch+=(120-(8*globalPitch)/55);
|
||||||
|
} else {
|
||||||
globalPitch+=(120-globalPitch/32);
|
globalPitch+=(120-globalPitch/32);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (effectVal<0x80) {
|
} else if (effectVal<0x80) {
|
||||||
for (int i=0; i<0x80-effectVal; i++) {
|
for (int i=0; i<0x80-effectVal; i++) {
|
||||||
|
if (globalPitch<=0) {
|
||||||
|
globalPitch-=(120-(8*globalPitch)/55);
|
||||||
|
} else {
|
||||||
globalPitch-=(120-globalPitch/32);
|
globalPitch-=(120-globalPitch/32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
for (int i=0; i<chans; i++) {
|
for (int i=0; i<chans; i++) {
|
||||||
chan[i].pitch+=globalPitch;
|
chan[i].pitch+=globalPitch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue