Corruption on deleting invisible time signature
Steps to reproduce:
In this score: Lovelock_3_test.mscz, delete the invisible time signature 2/8 in the first measure.
Save the file.
Close and reopen the file
Result: Lovelock_3_test_corrupt.mscz
This seems similar to https://musescore.org/en/node/14576 but that issue is definitely fixed. Making the time signature invisible doesn't corrupt the score anymore.
I would be much obliged if other users can verify and reproduce.
Also, should I open an issue or is it already reported and I missed it? Kindly advise if and where I could find this issue.
Regards
Louis
EDIT: I forgot to say that the corruption only occurs if the time signature is invisible. If the time signature is first made visible and then deleted, no corruption occurs.
Comments
Deleting the initial timesig is doomed to corrupt the score unless it is in 4/4 or something compatible (e.g. 2/2)
And that should be on visible and invisible timesigs.
In reply to Deleting the initial timesig… by Jojo-Schmitz
Could deleting the initial timesig then be disallowed with an error message or handled in some or other way (rather handled in some other way, like drawing barlines every four quarter notes, because it could be handy to be able to delete the initial timesig) to prevent the score from corrupting? Because doing that thing which is doomed to corrupt your score is currently dangerously possible; idiots like me are able to do it. ;-)
In reply to Could deleting the initial… by Louis Cloete
I agree Louis has a point. The time signature should not be permitted to be deleted if it will result in a corrupt file. The file should somehow otherwise identify it's initial time signature and keep the measures as though the time signature were still there. This will make it ok to delete any time signature so for example there is no issue in tuplets crossing lines and adding a different time signature will take the original time signature into account.
Actually, deleting an initial time signature should not cause corruption in current versions of MuseScore (it did in very old versions). Currently, deleting an initial time signature simply converts it to 4/4, and if you save it and reload it, it remains that way - no corruption.
EXCEPT, the problem here seems to be the section break. Your first several measures convert to 4/4 normally when you delete the time signature , but the section break prevented this from affecting the subsequent measures. And that is why only the subsequent measures were reported as corrupt.
So, the bug is, corruption on delete of initial time signature if a section break is present and there is no explicit time signature there either. Being invisible has nothing to do with it - you'll get the same result if you unhide it first.
BTW, I am guessing you don't really want to convert your score to 4/4, so deleting the time signature isn't a good idea to begin with. if the goal was just to get right of the space taken up by the time signature, then instead, right click the staff, Staff Properties, and uncheck "Show time signature".
In reply to Actually, deleting an… by Marc Sabatella
Filed as #271462: Corruption on delete of initial timesig if section break present with no subsequent timesig
How do you get this discussion to show up in the "What links here" section in the issue tracker?
In reply to Corruption on delete of… by Louis Cloete
You don't. Seems this is broken currently, as ISTR that it did work a while back.
In reply to You don't. Seems this is… by Jojo-Schmitz
OK thanks.
In reply to OK thanks. by Louis Cloete
The "What links here" works again ;-)
See #271333: The "What links here" section in issues don't get updated anymore