diff --git a/src/engine/controls/keycontrol.cpp b/src/engine/controls/keycontrol.cpp index 1d2236573c3a..2577b417be60 100644 --- a/src/engine/controls/keycontrol.cpp +++ b/src/engine/controls/keycontrol.cpp @@ -234,18 +234,12 @@ void KeyControl::updateRate() { m_pPitchAdjust->set( KeyUtils::powerOf2ToSemitoneChange(m_pitchRateInfo.pitchTweakRatio)); } else { // Unlock and reset to linear pitch (orig. key + pitch fader offset) - // If 'current' aka 'not original' key was locked - // TODO(ronso0) Why does it depend on keylock mode? - if (m_keylockMode->get() == kLockCurrentKey) { - // reset to linear pitch - m_pitchRateInfo.pitchTweakRatio = 1.0; - // was missing? - // m_pPitchAdjust->set( - // KeyUtils::powerOf2ToSemitoneChange(m_pitchRateInfo.pitchTweakRatio)); - } + m_pitchRateInfo.pitchTweakRatio = 1.0; + m_pPitchAdjust->set( + KeyUtils::powerOf2ToSemitoneChange(m_pitchRateInfo.pitchTweakRatio)); if constexpr (kEnableDebugOutput) { qDebug() << " UNLOCKING reset to linear pitch"; - qDebug() << " : pitchTweakRatio = 1.0"; + qDebug() << " : pitchTweakRatio =" << m_pitchRateInfo.pitchTweakRatio; qDebug() << " |"; } }