Hiding flat/sharp for both key signature and accidentals

• Jun 16, 2025 - 16:56

Hello,

it might sound very strange, but in my pursuit to show all non C-major keys with a different notehead, slightly offset, too, I would like to disable showing the flat/sharp symbol for both key signature and accidentals. Is there a way to do that programmatically?

(See https://github.com/PeterWurmsdobler/musescore/tree/main/simplicior for the concept)

Kind regards,
peter


Comments

It is interesting that there are plugins, in particular courtesyAccidentals, that will show accidental symbols for those that are already defined for a given key, e.g. in the key of G-major showing an F# with a # symbol for every F# in the score.

What I would like to do is quite the opposite. Since I would like to encode every accidental (in key or other) with a different notehead and/or colour, the accidental symbol becomes redundant. I would like not to show that symbol, but also not change the pitch or tonal pitch class.

That said, how does MuseScore work if one starts a score in say G-major and adds an F#4? I presume that it will add a note of appropriate pitch (=66) and tonal pitch class (=20 for F♯) to a chord, the chord to a segment, the segment on a measure on a staff.

What would I need to do if I change the shape of the F# programmatically in a plugin, change the key to Atonal ? This should not affect the pitch nor the tonal pitch class of the note?

Further, what will happen if I change the accidental Type to null? Will this obliterate the tonal pitch class, or even pitch, or is the accidental property only for decoration?

Do you still have an unanswered question? Please log in first to post your question.