implement 11xx effect on FM platforms

please no ch 3
This commit is contained in:
tildearrow 2022-02-01 15:12:06 -05:00
parent 7c9beca93f
commit f29d4bce1b
3 changed files with 21 additions and 0 deletions

View file

@ -483,6 +483,11 @@ int DivPlatformGenesis::dispatch(DivCommand c) {
rWrite(0x22,lfoValue);
break;
}
case DIV_CMD_FM_FB: {
chan[c.chan].state.fb=c.value&7;
rWrite(chanOffs[c.chan]+ADDR_FB_ALG,(chan[c.chan].state.alg&7)|(chan[c.chan].state.fb<<3));
break;
}
case DIV_CMD_FM_MULT: {
unsigned short baseAddr=chanOffs[c.chan]|opOffs[orderedOps[c.value]];
DivInstrumentFM::Operator& op=chan[c.chan].state.op[orderedOps[c.value]];