Import of exported MusicXML file "corrupt"
I exported a file with a drumset and upon opening the XML file in v2.1.0 I got a corrupt file error. If I "ignore", save the resultant file (seems NOT to be corrupted) as mscz and re-open, I again get the same CORRUPT error.
Files attached:
- .png files show CORRUPT message popup on loading XML, then saved XML file.
- split_drums.mscz is the original (opens with no error)
- split_drums.xml is the exported file that gives CORRUPT msg when opened
- split_drums 2.mscz is the saving of the XML import that continues to get CORRUPT msg when opened
Attachment | Size |
---|---|
open xml file.PNG | 26.76 KB |
open msc file saved for corrupt import.PNG | 29.32 KB |
split_drums.mscz | 43.16 KB |
split_drums.xml | 2.35 MB |
split_drums 2.mscz | 53.53 KB |
Comments
And crashes as soon as you try to go to the 1st corrupt measure
In reply to And crashes as soon as you… by Jojo-Schmitz
After some experiments maybe not crash (seems to me)
I was hoping to make use of MusicXML files for some bulk-edit utilities I am developing in Java (e.g., merge voilin and bass into piano, split drum-set into timpani and cymbals). Music-XML is properly (hierarchically) structured, while MuseScore xml is not and requires too much parsing code. For example within , and are possible and are order dependent. This would require walking the DOM tree and create metadata levels (such as a union structure of Chord and Rest).
In MusicXML, i could use JAXB tools to generate classes, fix up a bit, and then depend on automatic marshalling to build the score-specific representation.