diff --git a/src/track/keyutils.h b/src/track/keyutils.h index 0458a2c48194..2f7ecfd4523b 100644 --- a/src/track/keyutils.h +++ b/src/track/keyutils.h @@ -190,11 +190,11 @@ class KeyUtils { // Ensure pitch is in the [0-12) range static inline double normalizePitch(double pitch) { - double pitch = fmod((pitch), 12.0); - if (pitch < 0) { - pitch += 12.0; + double normPitch = fmod((pitch), 12.0); + if (normPitch < 0) { + normPitch += 12.0; } - return pitch; + return normPitch; } static double trackSyncPitchDifference(