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

@ -195,6 +195,14 @@ int DivPlatformC64::dispatch(DivCommand c) {
chan[c.chan].keyOff=true;
//chan[c.chan].std.init(NULL);
break;
case DIV_CMD_NOTE_OFF_ENV:
chan[c.chan].active=false;
chan[c.chan].keyOff=true;
chan[c.chan].std.release();
break;
case DIV_CMD_ENV_RELEASE:
chan[c.chan].std.release();
break;
case DIV_CMD_INSTRUMENT:
if (chan[c.chan].ins!=c.value || c.value2==1) {
chan[c.chan].insChanged=true;