more headache

This commit is contained in:
tildearrow 2022-01-19 22:05:39 -05:00
parent abea8e5dce
commit 51a89adb3d

View file

@ -433,6 +433,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
//chan[i].note=-1;
chan[i].keyOn=false;
chan[i].keyOff=true;
if (chan[i].inPorta) {
if (chan[i].stopOnOff) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;
@ -447,6 +448,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
}
}
chan[i].scheduledSlideReset=true;
}
dispatchCmd(DivCommand(DIV_CMD_NOTE_OFF,i));
} else if (!(pat->data[whatRow][0]==0 && pat->data[whatRow][1]==0)) {
chan[i].oldNote=chan[i].note;
@ -862,6 +864,7 @@ bool DivEngine::nextTick(bool noAccum) {
if (--chan[i].cut<1) {
chan[i].oldNote=chan[i].note;
chan[i].note=-1;
if (chan[i].inPorta) {
chan[i].keyOff=true;
chan[i].keyOn=false;
if (chan[i].stopOnOff) {
@ -879,6 +882,7 @@ bool DivEngine::nextTick(bool noAccum) {
}
dispatchCmd(DivCommand(DIV_CMD_PRE_PORTA,i,false));
chan[i].scheduledSlideReset=true;
}
dispatchCmd(DivCommand(DIV_CMD_NOTE_OFF,i));
}
}