fix tuning root

This commit is contained in:
KIRA Ryouta 2023-11-01 17:12:23 +09:00 committed by Paul Ferrand
parent d91b338e1b
commit be202a3b8a

View file

@ -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);
}
///