MusicXML import fails (no notes imported) if attributes/key/mode is not major or minor

• Oct 31, 2015 - 05:23
Type
Functional
Severity
S4 - Minor
Status
closed
Project

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