Skip to content

Commit

Permalink
Fix build fail from redefining pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
danferns committed Aug 12, 2024
1 parent b45963c commit 5681725
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/track/keyutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5681725

Please sign in to comment.