allow instrument change during slides

This commit is contained in:
tildearrow 2022-03-14 01:23:31 -05:00
parent a96fd5727e
commit e009fc64f2
6 changed files with 32 additions and 7 deletions

View file

@ -654,6 +654,12 @@ void DivEngine::processRow(int i, bool afterDelay) {
// instrument
if (pat->data[whatRow][2]!=-1) {
dispatchCmd(DivCommand(DIV_CMD_INSTRUMENT,i,pat->data[whatRow][2]));
if (chan[i].lastIns!=pat->data[whatRow][2]) {
chan[i].lastIns=pat->data[whatRow][2];
if (chan[i].inPorta && song.newInsTriggersInPorta) {
dispatchCmd(DivCommand(DIV_CMD_NOTE_ON,i,DIV_NOTE_NULL));
}
}
}
// note
if (pat->data[whatRow][0]==100) { // note off