From 869fe23036081e25858ff94d5dc10e3f4fa6b07d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 27 Jun 2022 03:44:09 -0500 Subject: [PATCH] fix .y12 TL loading --- src/engine/fileOpsIns.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/fileOpsIns.cpp b/src/engine/fileOpsIns.cpp index a2cc65346..b7ca22c1e 100644 --- a/src/engine/fileOpsIns.cpp +++ b/src/engine/fileOpsIns.cpp @@ -841,8 +841,9 @@ void DivEngine::loadY12(SafeReader& reader, std::vector& ret, St DivInstrumentFM::Operator& insOp = ins->fm.op[i]; uint8_t tmp = reader.readC(); 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(); insOp.rs = ((tmp >> 6) & 0x3); insOp.ar = tmp & 0x1F;