Skip to content

Commit

Permalink
fix: update octave change in AdjustPitchForNewClef
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Dec 3, 2024
1 parent 473199f commit 67a5a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pitchinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ void PitchInterface::AdjustPitchForNewClef(const Clef *oldClef, const Clef *newC

int pitchDiff = -2 * (newClef->GetLine() - oldClef->GetLine());
if (oldClef->GetShape() == CLEFSHAPE_F) {
pitchDiff -= 3;
pitchDiff += 4;
}
else if (oldClef->GetShape() == CLEFSHAPE_G) {
pitchDiff -= 4;
}
if (newClef->GetShape() == CLEFSHAPE_F) {
pitchDiff += 3;
pitchDiff -= 4;
}
else if (newClef->GetShape() == CLEFSHAPE_G) {
pitchDiff += 4;
Expand Down

0 comments on commit 67a5a42

Please sign in to comment.