fix .y12 TL loading

This commit is contained in:
tildearrow 2022-06-27 03:44:09 -05:00
parent 7ea49d7e84
commit 869fe23036

View file

@ -841,8 +841,9 @@ void DivEngine::loadY12(SafeReader& reader, std::vector<DivInstrument*>& ret, St
DivInstrumentFM::Operator& insOp = ins->fm.op[i]; DivInstrumentFM::Operator& insOp = ins->fm.op[i];
uint8_t tmp = reader.readC(); uint8_t tmp = reader.readC();
insOp.mult = tmp & 0xF; insOp.mult = tmp & 0xF;
insOp.dt = ((tmp >> 4) & 0x7); // ???
insOp.tl = (reader.readC() & 0x3F); insOp.dt = ((3 + (tmp >> 4)) & 0x7);
insOp.tl = (reader.readC() & 0x7F);
tmp = reader.readC(); tmp = reader.readC();
insOp.rs = ((tmp >> 6) & 0x3); insOp.rs = ((tmp >> 6) & 0x3);
insOp.ar = tmp & 0x1F; insOp.ar = tmp & 0x1F;