Skip to content

Commit

Permalink
fix musescore#22131: bad diatonic transposition of Cb, Cbb
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Dec 16, 2013
1 parent c67a0ae commit 4554f23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/pitchspelling.cpp
Expand Up @@ -810,6 +810,8 @@ int pitch2absStepByKey(int pitch, int tpc, int key, int *pAlter)
if(key > KEY_MAX) key -= KEY_DELTA_ENHARMONIC;

int octave = pitch / PITCH_DELTA_OCTAVE;
if (tpc == TPC_C_BB || tpc == TPC_C_B)
++octave;
int step = tpc2step(tpc);
if(pAlter)
*pAlter = tpc2alterByKey(tpc, key);
Expand Down

0 comments on commit 4554f23

Please sign in to comment.