This commit is contained in:
tildearrow 2022-08-21 20:06:01 -05:00
parent 10aaf7f0cb
commit b223bc80de

View file

@ -263,19 +263,37 @@ void DivPlatformGenesis::tick(bool sysTick) {
} }
} }
if (chan[i].std.arp.had) { if (i>=5 && chan[i].furnaceDac) {
if (!chan[i].inPorta) { if (chan[i].std.arp.had) {
if (chan[i].std.arp.mode) { if (!chan[i].inPorta) {
chan[i].baseFreq=NOTE_FNUM_BLOCK(chan[i].std.arp.val,11); if (chan[i].std.arp.mode) {
} else { chan[i].baseFreq=parent->calcBaseFreq(1,1,chan[i].std.arp.val,false);
chan[i].baseFreq=NOTE_FNUM_BLOCK(chan[i].note+(signed char)chan[i].std.arp.val,11); } else {
chan[i].baseFreq=parent->calcBaseFreq(1,1,chan[i].note+(signed char)chan[i].std.arp.val,false);
}
}
chan[i].freqChanged=true;
} else {
if (chan[i].std.arp.mode && chan[i].std.arp.finished) {
chan[i].baseFreq=parent->calcBaseFreq(1,1,chan[i].note,false);
chan[i].freqChanged=true;
} }
} }
chan[i].freqChanged=true;
} else { } else {
if (chan[i].std.arp.mode && chan[i].std.arp.finished) { if (chan[i].std.arp.had) {
chan[i].baseFreq=NOTE_FNUM_BLOCK(chan[i].note,11); if (!chan[i].inPorta) {
if (chan[i].std.arp.mode) {
chan[i].baseFreq=NOTE_FNUM_BLOCK(chan[i].std.arp.val,11);
} else {
chan[i].baseFreq=NOTE_FNUM_BLOCK(chan[i].note+(signed char)chan[i].std.arp.val,11);
}
}
chan[i].freqChanged=true; chan[i].freqChanged=true;
} else {
if (chan[i].std.arp.mode && chan[i].std.arp.finished) {
chan[i].baseFreq=NOTE_FNUM_BLOCK(chan[i].note,11);
chan[i].freqChanged=true;
}
} }
} }