reset arpeggio phase to zero on new note

This commit is contained in:
DevEd 2023-09-10 17:08:32 -04:00
parent 630bdfb2b5
commit 85c5cffde8

View file

@ -1067,6 +1067,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
} }
} else if (!chan[i].noteOnInhibit) { } else if (!chan[i].noteOnInhibit) {
dispatchCmd(DivCommand(DIV_CMD_NOTE_ON,i,chan[i].note,chan[i].volume>>8)); dispatchCmd(DivCommand(DIV_CMD_NOTE_ON,i,chan[i].note,chan[i].volume>>8));
chan[i].arpStage=-1;
chan[i].goneThroughNote=true; chan[i].goneThroughNote=true;
chan[i].wentThroughNote=true; chan[i].wentThroughNote=true;
keyHit[i]=true; keyHit[i]=true;