Extra clefs and key signatures after style change
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S4 - Minor
Status
duplicate
Regression
No
Workaround
No
Project
This happened after I changed the page settings to a larger paper size and adjusted the staff spacing. I am using Musescore 3.0.5 At measure 117 in my score I got extra clefs and key signatures that are unnecessary. My clefs and keys do highlight individually when I click on one(so if I click on the double bass staff, it will only highlight the clef and key signature in that staff) and not the entire system. This score that got affected is for an orchestra with 19 staves. I don't have any other affected scores
Here is the score attachment:
Attachment | Size |
---|---|
Pathetique Sonata.mscz | 242.08 KB |
Comments
The problem has to do with the clef in bar 117 bassoon part, which for some reason is a full-size "header" clef rather than a smaller type normally associated with clef changes. We've had bugs (prior to 3.0.3) with clef changes inserted at the beginning of a measure rather than on the measure itself, and I'm guessing that is what happened here.
Some more background:
This seemed likely to be related #286794: Permanent double time signature/key signature after style changed then save/reload and as such I would have hoped it would be fixed in 3.1, but I am still able to reproduce a problem in current master using steps analogous to those described there:
1) load attached score
2) add line break before 117
3) remove line break
The problem appears to be the existing clef change. Somehow, even though a "mid-measure" clef change (appearing after the barline), it is behaving like a start-of-system clef change. You can see a couple of other signs of this. One is that it is full size when mid-measure clefs should be small. Another sign of trouble is that after adding a line break before the measure, you don't see the previous clef at the beginning of the system before the change to bass clef.
Internally, it's in a segment of type HeaderClef when it should simply be of type Clef. This is a change made a little while back, I'm guessing this score predates that change.
Anyhow, to fix the problem in this score, delete that clef and re-add it, then it should be added correctly.
The question is, how did this problem happen? If the clef was originally added prior to 3.0.3, then I think that probably explains it. Otherwise, we would need to understand how that full-size clef at the start of the measure managed to get there. Normally, clef changes are small.
In reply to The problem has to do with… by Marc Sabatella
The clef change and in fact the entire score was made with Musescore 3.0.5, so after that change that you described in your comment. It seems to have stopped giving me extra clefs and key signatures after the save. But then again, I have made no further changes to the style. So the extra clefs and key signatures seems to only happen when the style has changed(like changing from Letter size to A3 size as I did) and is not saved in the file. The only thing saved in the file is the clef change itself. But that is odd having a full size bass clef there at the clef change.
I guess the change in the paper size is the cause of both the full size bass clef at the clef change in the bassoon and the extra clefs and key signatures in every staff because the clef change was a small bass clef as usual before I changed the paper size. I mean, how else would I get a full size bass clef being saved in the file in the bassoon part while the extra clefs and key signatures everywhere else vanish after the save in Musescore 3.0.5? But then, why would it affect the change back to bass clef and not the previous change to tenor clef?
Thanks, that's good information. I can now confirm that I can reproduce this erroneous clef in 3.0.5 by deliberately triggering the bug described in #286794: Permanent double time signature/key signature after style changed then save/reload:
1) delete the bad clef in 117
2) reinsert it in front of the first note of the measure (eg, after barline)
3) add line break just before 117
4) press "M" to toggle mmrests (or change any other style setting)
5) save
6) reload
7) delete the line break before 117
Result: extra clefs and key signatures, as you originally described. Then:
8) save
9) reload
Result: the extra clefs and key signatures are gone, just as we see opening your originally-attached file, but the clef on the bassoon staff has been converted into this erroneous type.
So the mystery is solved, I think. You were seeing the effect of #286794: Permanent double time signature/key signature after style changed then save/reload that mostly fixed itself on reload, except it left a bad clef in place that can be fixed manually.
Eventually we should probably come up with a strategy to fix scores like this automatically on load.
It happened again after I set it to show the naturals and flats in key signature changes in my Rondo a Capriccio harmonic analysis score. And now I'm using Musescore 3.2.3 instead of Musescore 3.0.5. Same thing happened, Extra clefs and key signatures after style change, save and reload the score gets rid of extra clefs and key signatures and leaves an erroneous system size bass clef in place. Then deleting the erroneous system size clef and dragging the bass clef to the measure where the change occurs fixes the erroneous clef part of the issue.
This erroneous clef seems to only happen to the bass clef for some reason and not to the treble clef or other clefs.
If the score was created in 3.0.5, then it's already damaged indeed. So you need to fix the damage by turning off courtesy clefs/key signatures/time signatures (in Format / Style / Page), saving, then reloading, then turning them back on.
If that doesn't fix it, or if you are positive this score was never edited in any earlier version of MuseScore, please atttach the score and precise steps to reproduce the problem.
In reply to If the score was created in… by Marc Sabatella
I am positive the file wasn't made in 3.0.5. It was made in 3.2.3, months after the clef issue was first reported. Here is what happened when the problem started up again:
1) I went to Format -> Style -> Accidentals
2) I changed it from the default Only for a change to C maj/A min to Before key signature if changing to fewer # or ♭
3) I saved and reloaded the score
4) No issues showed up at this point
5) I put in multiple clef changes according to where they show up in the original score by Beethoven as well as some that Beethoven didn't write but I did to make it easier to read as well as multiple key signature changes(all while not in note entry mode to avoid accidentally putting in notes)
6) I saved and reloaded the score again
7) Extra clefs and key signatures showed up in bar 123 of the score when I opened it
8) I saved and reloaded the score a third time
9) Extra clefs and key signatures disappeared, leaving an erroneous, system size bass clef in its wake
10) I manually deleted the erroneous bass clef and dragged the bass clef from the palate to the measure where the clef change occurs
11) Everything looks normal now