MusicXML Export Issue
Hi all.
I am using MuseScore V 2.0.1 on Windows Vista.
I have found a minor issue when exporting MusicXML. If I add some chord text to my score for a C7sus4 chord and export to MusicXML (compressed), the XML contains:
<harmony print-frame="no"> <root> <root-step>C</root-step> </root> <kind text="7sus4">suspended-fourth</kind> <degree text=""> <degree-value>7</degree-value> <degree-alter>0</degree-alter> <degree-type>add</degree-type> </degree> </harmony>
When I import the same MusicXML into MuseScore (same version and operating system) there is an error:
Fatal error: line 99 column 24 Element degree contains unknown attribute text.
Ignoring the error is fine & MuseScore loads the score.
Looking at the MusicXML spec, I don't think the degree tag is allowed to have a text attribute.
When I manually edited the MusicXML to remove the text attribute, it loaded OK.
Thanks
Don.
Attachment | Size |
---|---|
ExportMusicXMLError.mscz | 6.52 KB |
Fixed.xml | 18.4 KB |
Comments
Same happens with MuseScore 2.0.3 as well as the latest development version. If you ignore the error it seems to Import correctly though.
There is a comment in the source suggesting that some other applications require this. See #53936: Incomplete MusicXML text attributes for 7sus4 chords.
But I think I might have misinterpreted Michael Good's advice - apparently he was actually suggesting a text attrtibute on the "degree-value" tag, not the "degree" tag. Does this seem reaosnable to people?
In any case, I'm still not crazy about the handling of sus chords and think the MusicXML spec could stand to be improved on this point.
In reply to There is a comment in the by Marc Sabatella
According to the MusicXML documentation, the degree-value tag can have a text attribute, but not the degree tag.
So Marc's comment above would meet the MusicXML spec & hopefully also enable importing these interesting chords.
In reply to There is a comment in the by Marc Sabatella
See also #186706: [XML export] export 7sus(4) chord to MusicXML fails reimport: "Element degree contains unknown attribute text."