mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
whaaaaaaaaa
This commit is contained in:
parent
772aac5806
commit
eb28f7f7f1
1 changed files with 12 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue