possibly implement envelope release points

no way to set them yet tho other than the MML string
This commit is contained in:
tildearrow 2022-02-08 13:11:04 -05:00
parent 480ae960e4
commit bf537881ce
13 changed files with 80 additions and 0 deletions

View file

@ -532,6 +532,14 @@ int DivPlatformArcade::dispatch(DivCommand c) {
chan[c.chan].keyOff=true;
chan[c.chan].active=false;
break;
case DIV_CMD_NOTE_OFF_ENV:
chan[c.chan].keyOff=true;
chan[c.chan].active=false;
chan[c.chan].std.release();
break;
case DIV_CMD_ENV_RELEASE:
chan[c.chan].std.release();
break;
case DIV_CMD_VOLUME: {
chan[c.chan].vol=c.value;
if (!chan[c.chan].std.hasVol) {