Musecore 4.2 MusicXML issue
I've been trying to export MusicXML from Musescore 4.2 and import into Band-In-A-Box (BIAB).
When I try to import in BIAB, it baulks with an error: "Could not convert variant of type (null) into type (String).
When I try to import the same MusicXML file back into Musescore 4.2 I get an error:
File: " ... Waste_No_Tears.musicxml" is not a valid MusicXML file.
Attachment | Size |
---|---|
Waste_No_Tears.musicxml | 55.61 KB |
Comments
Try again. I’ve always wondered if there is some sort of interference that messes with exports. Like noise in an mp3 that wasn’t supposed to be there.
Can you attach musescore file too?
I used MXML between Dorico and MS without much issue. Might be a BIAB thing.
Several chord symbols (e.g. the one at the first note in measure 15) have been encoded incorrectly by MuseScore, the MusicXML file does not comply with the MusicXML specification.
This should be fixed, but finding the cause requires having the MuseScore file available. Please attach it.
In reply to The chord symbol at the… by Leon Vinken
HI, yes certainly.
FYI, I exported with no system or page breaks, though I've tried several file with and without and all attempts have failed similarly.
Matching pair attached just to be sure.
In reply to The chord symbol at the… by Leon Vinken
I'm not exactly familiar with MusicXML, but your pointer to measure 15 was helpful as it shows an empty 'kind' element, where I think it should contain 'major'. That would concur with BIAB's error about failing to handle a NULL.
In reply to I'm not exactly familiar… by GordonS
Wait. I opened both your files in MU4 without issue. Measure 15 is the same between them. Just because the error says there is a problem doesn't mean you can't open it. I see that a lot with mxl files.
In reply to Wait. I opened both your… by bobjp
I can open them in Musescore 4 OK, though it reports the MusicXML as "not valid".
Band-In-A-Box, where I wish to import the same MusicXML aborts with a conversion issue.
I would have been nicer if BIAB had tried to better handle the non-conformity, but that's not the bug. The bug is, I believe, the absence of "major" in the "kind" element.
MusicXML is quite complex and it is not surprising that errors creep in.
In reply to I can open them in Musescore… by GordonS
I'm going to create an mxl from another notation software and post it so you can try it in BIAB.
In reply to I'm going to create an mxl… by bobjp
I've been doing this for a few years and generally it has worked in the past. I'm pretty sure I've used the method with Musescore 4, too, but either not with the latest incremental, or I've just been lucky. I think I tried with several scores, so I suspect the former.
I have been contemplating changing all occurrences of empty 'kind' elements with a version containing 'major', but I have yet to try that. It's a hack anyway that's of fairly limited benefit, but it may be a workaround for a while.
Debugged the issue but found the root cause to be in a part of the code that I am not familiar with. Can't fix it myself, so I have submitted issue https://github.com/musescore/MuseScore/issues/20996