From 2a5487ac1988e3213e96d153ae2c08a1802b99aa Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 14 Apr 2024 13:35:52 -0500 Subject: [PATCH] a --- 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 7f885708c..9b3b7d55b 100644 --- a/src/engine/fileOps/ftm.cpp +++ b/src/engine/fileOps/ftm.cpp @@ -577,7 +577,8 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len, bool dnft, bool dnft_si customHz = reader.readI(); } - if (customHz<1.0) customHz=1.0; + logV("before clamp: %f",customHz); + if (customHz>1000.0) customHz=1000.0; unsigned int newVibrato = 0;