Cleaning up XML import

• Aug 29, 2023 - 21:17

I'm importing an XML file. When I open the XML in Musescore, it's perfect. When I save it as a Muse file, it has some extraneous rests that mess up the measure lengths. The problem is that I can't edit this Muse file. When I try to delete the erroneous rests, nothing happens. I can delete notes that are correct, but these corrupt rests are immovable. They are not in the XML file. They are created when the file is saved as a Muse file. Any ideas?


Comments

In reply to by Pentatonus

For me, the XML file opens perfectly. However, when I save it as a Muse file and then open it, I get a message saying "File Ondine.mscz is corrupted". It refers me to a number of measures that have the wrong number of beats. The first problem measure is 18, which has a dotted quarter rest in the middle of the bar that shouldn't be there. See the attachment. Thanks. There are a number of other measures with similar problems.

As I said in my first post, if I could just delete these rogue rests everything would be OK, but they are not subject to editing.

Attachment Size
Muse XML error.png 412.92 KB

In reply to by Eryops

Here is the list of reported errors:

Bar 18, stave 2 incomplete. Expected: 2/4; Found: 294/336
Bar 20, stave 2 incomplete. Expected: 2/4; Found: 294/336
Bar 63, stave 1 incomplete. Expected: 3/4; Found: 264/192
Bar 63, stave 1, voice 2 too long. Expected: 3/4; Found: 88/64
Bar 63, stave 2 incomplete. Expected: 3/4; Found: 240/192
Bar 67, stave 1 incomplete. Expected: 4/4; Found: 2520/1344
Bar 67, stave 1, voice 2 too long. Expected: 4/4; Found: 120/64
Bar 68, stave 1 incomplete. Expected: 4/4; Found: 360/192
Bar 68, stave 2 incomplete. Expected: 4/4; Found: 560/320
Bar 77, stave 1 incomplete. Expected: 3/4; Found: 264/192
Bar 78, stave 1 incomplete. Expected: 3/4; Found: 264/192
Bar 79, stave 1 incomplete. Expected: 3/4; Found: 1848/1344
Bar 79, stave 1, voice 2 too long. Expected: 3/4; Found: 16275/21504
Bar 79, stave 2 incomplete. Expected: 3/4; Found: 960/960
Bar 79, stave 2, voice 2 too long. Expected: 3/4; Found: 56/64
Bar 89, stave 1 incomplete. Expected: 4/4; Found: 1296/1152
Bar 89, stave 2 incomplete. Expected: 4/4; Found: 1296/1152

The XML is a horrible mess, and it's not an easy score to repair.

In reply to by Eryops

But they are in the xml. Create an empty measure at the end of the xml score. C+P staff 2 of measure 18 into the new measure. There is the dotted quarter rest. You can switch voice 1 and 2, and delete the rest. But it doesn't work if you switch voices back. You have to delete the measure and re-enter the notes. Then is the measure fixed in the mscz file.

In reply to by bobjp

Yes, you're right. So the errors are in the XML. That solves that. This XML file was made from a Sibelius file that is quite long and complex and has multiple voices. I suspect that the XML plugin for Sibelius is less than perfect. Although I've used it before for simpler files and it worked fine. Anyway, thanks for your help. And thanks to everyone who commented.

In reply to by DanielR

Interesting: when I open the xml file with MuseScore (3.6.2), at least bar 18 and 20 seem to be correct (see image XML_362, bar 20). If I save the file in mscz format and open it again, errors occur (see MSCZ_362,bar 20).
Compare the two images, the first shows what bar 20 looks like when you open the xml file, the second when you save it in mscz format and reopen it. See the dotted quarter rest of voice 1 where my cursor is pointing.
A similar error occurs in measure 18.
It is hard to tell if Musescore is misinterpreting or the xml is corrupted.

XML_362.png
MSCZ_362.png

Attachment Size
XML_362.png 21 KB
MSCZ_362.png 24.1 KB

Do you still have an unanswered question? Please log in first to post your question.