OPLL: add effect to change patch
10xx
This commit is contained in:
parent
30cf8ff00b
commit
9e1b43f401
3 changed files with 9 additions and 0 deletions
|
|
@ -692,6 +692,13 @@ int DivPlatformOPLL::dispatch(DivCommand c) {
|
|||
chan[c.chan].freqChanged=true;
|
||||
break;
|
||||
}
|
||||
case DIV_CMD_WAVE: {
|
||||
if (c.chan>=6 && (crapDrums || properDrums)) break;
|
||||
if (c.chan>=9) break;
|
||||
chan[c.chan].state.opllPreset=c.value&15;
|
||||
rWrite(0x30+c.chan,((15-VOL_SCALE_LOG_BROKEN(chan[c.chan].outVol,15-chan[c.chan].state.op[1].tl,15))&15)|(chan[c.chan].state.opllPreset<<4));
|
||||
break;
|
||||
}
|
||||
case DIV_CMD_FM_FB: {
|
||||
if (c.chan>=9 && !properDrums) return 0;
|
||||
//DivInstrumentFM::Operator& mod=chan[c.chan].state.op[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue