honor arpeggio macro during legato

This commit is contained in:
tildearrow 2021-12-08 00:56:46 -05:00
parent 0ca761d7fd
commit db46dd79d2
5 changed files with 5 additions and 5 deletions

View file

@ -140,7 +140,7 @@ int DivPlatformSMS::dispatch(DivCommand c) {
updateSNMode=true;
break;
case DIV_CMD_LEGATO:
chan[c.chan].baseFreq=round(1712.0f/pow(2.0f,((float)c.value/12.0f)));
chan[c.chan].baseFreq=round(1712.0f/pow(2.0f,((float)(c.value+((!chan[c.chan].std.arpMode)?(chan[c.chan].std.arp-12):(0)))/12.0f)));
chan[c.chan].freqChanged=true;
chan[c.chan].note=c.value;
break;