Are you sure this should be before formatAccidentals and formatDots? (The ordering here determines which modifiers render closer to the note.)