MusicXML import fails (no notes imported) if attributes/key/mode is not major or minor
Hey all,
MusicXML spec allows for the element in measure/attributes/key to be any of ionian, dorian, etc, as well as major or minor: (http://www.musicxml.com/for-developers/musicxml-xsd/partwisetimewise-fi… - find in page "dorian"). However, if such a file is imported into musescore, a score with measures but no notes results if mode is not major or minor.
Test case (adapted from the MusicXML Hello World):
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> <score-partwise version="3.0"> <part-list> <score-part id="P1"> <part-name>Music</part-name> </score-part> </part-list> <part id="P1"> <measure number="1"> <attributes> <divisions>1</divisions> <key> <fifths>0</fifths> <mode>dorian</mode> </key> <time> <beats>4</beats> <beat-type>4</beat-type> </time> <clef> <sign>G</sign> <line>2</line> </clef> </attributes> <note> <pitch> <step>C</step> <octave>4</octave> </pitch> <duration>4</duration> <type>whole</type> </note> </measure> </part> </score-partwise>
Comments
See #72206: [MusicXML] Corrupted import if key signature is no minor or major. Should already be fixed in current builds, reopen if you find otherwise.
And the above example does import properly in the latest build (but indeed does not in 2.0.2)
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.