When adding notes to measure 647 in the flute line (top line), the key signature disappears and is not present. It cannot be added back either. This is an issue because the d is not a d#, but rather a d- natural. The problem is shown in the score attached.
Comments
Can you attach the score? Also precise step by step instructions to reproduce the problem.
Here is the score, I thought I attached it earlier....
The_Butterfly_Lovers.mscz
To reproduce,
Go to measure 647
Try to add the E-Major Key signature in the Flute part like the rest of the piece.
I can verify this, but - the score has the "Create key signature for all systems" option turned off in Style / General / Page. This doesn't completely excuse what is happening - see below - but I wonder if this was a mistake - did you really mean to not show key signatures at the beginning of each system? Turn this option back on, and all is well. FWIW, it isn't really meant to work with scores that actually contain key changes - it's meant more for simple lead sheets with a key sihgnature at the beginning and that's all you want.
I think what is happening is that in the part, the key change happens to occur at the beginning of a system, and is therefore being suppressed because of this setting. Probably the option should only suppress "generated" key signatures at the beginnings of systems, not real key changes. I thought there was an existing bug report for this, but I don't see it.
See https://github.com/musescore/MuseScore/pull/2096
To put this issue in very simple terms:
1) my first score
2) style / general / page
3) turn off "Create key signature for all systems"
4) add D major key signature to measure 5 (first measure of second system)
Result: the courtesy key signature appears at the end of the first system, but no key signature appears at the start of the second.
The use case I know of for this option is mimicing the "Real Book" style of lead sheet, where the initial key signature is shown but not repeated on staves after that. In this use case, key *changes* definitely *are* still shown, even if at the start of the system. I am not aware of any use case where you *wouldn't* that.
My change will not affect scores that do not turn off this option (eg, the vast majority of scores) or scores that turn off this option but do not change keys.
Fixed in branch master, commit 8ccf8607de
fix #66826: always display key change at start of system
Fixed in branch master, commit 82b3ed8569
Merge pull request #2096 from MarcSabatella/66826-generate-key
fix #66826: always display key change at start of system
Fixed in branch 2.0.2, commit e077c798a6
fix #66826: always display key change at start of system
Automatically closed -- issue fixed for 2 weeks with no activity.