File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature
1. Open attached score with e666061.
2. Go to page 9 and select the entire last system (starting with rehearsal 21).
3. File > Save Selection…
4. Open saved score.
Result: every single measure of every single staff is corrupted.
Attachment | Size |
---|---|
Huron_River_Andante.mscz | 320.4 KB |
result.mscz | 47.71 KB |
Comments
Because for saving a selection, you have to "protect", before the selection of the extract (last system, page 9) the time signature, by adding one (so 3/4) at your score, ie at rehearsal 21.
See the result: selection.mscz
I see. Is this expected behavior?
I don't think it's expected but I can confirm that Save selection is very "literal". Meaning it saves the actual selection, doesn't add time signature or key signature. It just dump the xml representing the current selection in a new mscz file... possibly it should become smarter but there is nothing done currently.
So where does the assumption of a specific meter come in, and hence the corruption because of the mismatch?
A score with no time signature is assumed to be 4/4.
I didn't try it but it's probably the same for key signature, maybe even clef...
Fortunately, those don't cause the same level of problem.
See https://github.com/musescore/MuseScore/pull/3048
Fixed in branch 2.1, commit 0299f2d947
fix #99146: File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature
Fixed in branch 2.1, commit a062decc3f
Merge pull request #3048 from lasconic/fix-99146-21
fix #99146: File > Save Selection… leads to corrupt score if selectio…
Fixed in branch master, commit 752bafc8e9
fix #99146: File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature
Automatically closed -- issue fixed for 2 weeks with no activity.
Seems this problem is back, see #276295: Save selection defaults to 4/4 time signature, but no display