mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
fix .y12 TL loading
This commit is contained in:
parent
7ea49d7e84
commit
869fe23036
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue