From 7843a9dcd1686600b1f73380cb457201543e192e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 20 Mar 2024 03:15:15 -0500 Subject: [PATCH] more .ftm import cherry-picking --- src/engine/fileOps/ftm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/fileOps/ftm.cpp b/src/engine/fileOps/ftm.cpp index cbac4741d..e687e73f0 100644 --- a/src/engine/fileOps/ftm.cpp +++ b/src/engine/fileOps/ftm.cpp @@ -931,6 +931,7 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len, bool dnft, bool dnft_si dpcmNotes = notes; } + // should dpcmNotes be 96 always? for (int j = 0; j < dpcmNotes; j++) { int note = j; if (blockVersion >= 7) { @@ -1504,7 +1505,7 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len, bool dnft, bool dnft_si logV("tempo %d", tempo); if (tempo == 0) { - s->virtualTempoN = 150.0; + s->virtualTempoN = s->virtualTempoD; } else { s->virtualTempoN = tempo; }