From be202a3b8a7006d354db99b09b6dbe171852a084 Mon Sep 17 00:00:00 2001 From: KIRA Ryouta Date: Wed, 1 Nov 2023 17:12:23 +0900 Subject: [PATCH] fix tuning root --- src/sfizz/Tuning.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sfizz/Tuning.cpp b/src/sfizz/Tuning.cpp index 886f86fb..f77b9ecd 100644 --- a/src/sfizz/Tuning.cpp +++ b/src/sfizz/Tuning.cpp @@ -146,8 +146,7 @@ Tunings::KeyboardMapping Tuning::Impl::mappingFromParameters(int rootKey, float rootKey = std::max(0, rootKey - 12); #endif // fixed frequency of the root note - const double rootFrequency = tuningFrequency * std::exp2((rootKey - 69) / 12.0); - return Tunings::tuneNoteTo(rootKey, rootFrequency); + return Tunings::startScaleOnAndTuneNoteTo(rootKey, 69, tuningFrequency); } ///