Cleaning up XML import
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
Please post a score that does this.
In reply to Please post a score that… by bobjp
Here it is. Any comments welcome. Thanks.
In reply to Here it is. Any comments… by Eryops
For me, the xml and the saved MuseScore-file are the same?
It's a quite long score. I looked at the first 16 pages.
Please say, which measures (numbers) these rests appear for you?
In reply to For me, the xml and the… 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.
In reply to For me, the XML file opens… by Eryops
It seems to me that you should try to fix the xml, instead. It is hard to tell if all the tuplets are accurate.
In reply to For me, the XML file opens… 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 Here is the list of reported… by DanielR
These are the errors that Muse finds when it converts the file. However, when you look at the XML file, it looks perfect. None of these errors are visible in the XML file. Why do they only emerge when the file is converted?
In reply to These are the errors that… 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 But they are in the xml… 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 Here is the list of reported… 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.
In reply to Interesting: when opening… by HildeK
Where did the xml file come from? Was it a conversion from a PDF, which can produce these kind of errors ?
In reply to Where did the xml file come… by Brer Fox
The header says:
In reply to The header says: … by HildeK
See my post above.
In reply to Interesting: when opening… by HildeK
Yes, HildeK, this is exactly what I was looking at. As Bobjp notes above, the XML file itself is corrupted. Thanks for your input.