Inserting measure before measure previously at start of system displays spurious key signature
P0 - Critical
S3 - Major
Take the enclosed 3.0-fresh (19499) score. Select any measure. Shift-I. A measure arises, but carries a superfluous key-signature which cannot be deleted.
And then to increase joy, the measure cannot be deleted (Cmd-delete fails.).
I am able to reproduce, but not that simply. It works fine for me at first, then starts to fail. Not sure of the complete steps needed to reproduce, but it might involve either repeated attempts to add measures and then undoing, or perhaps accidentally inserting a frame then undoing that...
In reply to (No subject) by Marc Sabatella
I have inserted no frames (other than the title). This pretty bad! I can't get rid of 'em! A workaround is to delete the rest of the composition and insert it at the unwanted measure.
How about line break - any chance you added one of those then deleted it? I see the same effect that way. As I said, I don't see this behavior when I first load the score. Have you tried closing it, reopening it, and verifying if this is true for you? But once the score gets into this state, it's there until I delete the measure.
The following reproduces the problem for me reliably:
1) load the score in the original post
2) select measure 12 (could be any measure after 1)
3) double-click text frame icon in Frames & Measures palette (or, add line break to measure 11)
4) undo, or select and delete
5) reselect measure 12
5) double-click measure icon in Frames & Measure palette
Result: the inserted measure shows a key signature unnecessarily.
I can also reproduce that particular sequence in a score created from scratch - default score, add key signature at beginning, then follow the above steps. But the key for me is adding then removing the frame.
As for workarounds, I actually see a couple. One is to simply delete the measure and add it again. It also works to add a new key signature there then delete that.
When it gets into that state, you can't delete that (or any) measure. No, I didn't use any breaks/spacers. Overwriting the signature with a real one produces one that can then be deleted, but I still can't delete the measure.
Really? You are using Cmd+Delete? It deletes fine for me.
Cmd-Delete and the newly-repaired context menu option both fail. Closing and reopening (from .mscx) did fix it, though.
OK. Well, based on my analysis, I have a fix for what I was able to reproduce. There are actually quite a few ways for a score to get into the state where inserting measures would have this effect, inserting and removing frames or breaks are but two of them. Basically, anything that would result in the measure question having once upon a time been at the beginning of the system would do it - there would forever be a vestige of the key signature in that system, ready to reappear on the (insert measure) command. The fix is simply to be sure to ignore that vestige when inserting measures.
I really cannot imagine any way the measure would not be deletable though, and nothing about my fix would address that. If you are ever able to reproduce that state, let us know by filing a new issue report, and maybe see if you can leave that file open long enough for someone to respond and have you try a few things.
When I was in this state, inserting measures not near the beginning of a line (actually, they were at the end) brought forth measures with bogus signatures repeatedly (at the same point).
Here is the PR to fix this and other related issues: https://github.com/musescore/MuseScore/pull/4353
Meanwhile, save/reload should be a pretty reliable workaround.
Speaking of, is there a reliable way to find "corrupt measures" without saving online? I created a sea of corruption Saturday night by repeated use of timewise insert and delete in one voice (the other voices were empty, but were thereby corrupted) and was almost unable to upload.
The same corruption should get reported by MuseScore on opening the score. So for corruptions that crept in in the current session, save/close/reopen should show them the same way that "Save online" does
A better way is needed. If I suspect the score is corrupt, the (literally) last thing I want to do is save it.
Then use Save online :-)
That's actually a reasonable answer; annul the URL and hit "save-online". You have a highly operative sense of humor.
Adding a command , e.g. in the Tools section of the menus, and/or via a shortcut might be a good idea. As would calling that function automagically on every "Save" or "Save as" (but probably not on autosave)
Feel free to submit such a feature request
FWIW, there is already a "show corrupted measures" command in the Debug menu, only visible in debug builds. Maybe we just expose that in View?
In reply to FWIW, there is already a … by Marc Sabatella
It's a bit problematic product-wise (imagine a "show thieves" button for a government), but at very least, for a beta, it would be very welcome. Certainly, save(-as) should show the complaint dialog and offer not to save. By the way, what is a little blue "+" (or sometimes "-") placed by the app above the staff?
those + and - denote irregular measures (longer resp. shorter than time sig)
In reply to those + and - denote… by Jojo-Schmitz
... more or less .... :)
oops, having left out that pun was defintily not my intention ;-)
See also #279938: New key signature when inserting measures in continuous view
Fixed in branch master, commit 1dcbb7c060
fix #279609: keysig problems on insert/delete measures
Automatically closed -- issue fixed for 2 weeks with no activity.