Key signatures (transposed with flips)

When a part is transposed, its key signature may need to "flip" enharmonically to avoid an overly large number of sharps or flats. This is controlled by "keyFifthsFlipAt" on the part's transposition.

Each of the three B♭ parts here transposes up a major second, so the concert key signatures of 3, 5 and 6 sharps become written key signatures of 5, 7 and 8 sharps. Whenever the written key signature reaches the part's "keyFifthsFlipAt" value, 12 fifths are subtracted, so 5 sharps becomes 7 flats, 7 sharps becomes 5 flats and 8 sharps becomes 4 flats.

With "keyFifthsFlipAt": 5, all three key signatures flip. With 7, only the last two flip. With 8, only the last one flips.