Closed jacekiwaszko1 closed 7 years ago
Creating a similar score from scratch works, so something strange in the above MusicXML most likely.
Here is a MusicXML which works:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise>
<identification>
<encoding>
<software>MuseScore 2.0.3</software>
<encoding-date>2017-06-06</encoding-date>
<supports element="accidental" type="yes"/>
<supports element="beam" type="yes"/>
<supports element="print" attribute="new-page" type="yes" value="yes"/>
<supports element="print" attribute="new-system" type="yes" value="yes"/>
<supports element="stem" type="yes"/>
</encoding>
</identification>
<defaults>
<scaling>
<millimeters>7.05556</millimeters>
<tenths>40</tenths>
</scaling>
<page-layout>
<page-height>1683.36</page-height>
<page-width>1190.88</page-width>
<page-margins type="even">
<left-margin>56.6929</left-margin>
<right-margin>56.6929</right-margin>
<top-margin>56.6929</top-margin>
<bottom-margin>113.386</bottom-margin>
</page-margins>
<page-margins type="odd">
<left-margin>56.6929</left-margin>
<right-margin>56.6929</right-margin>
<top-margin>56.6929</top-margin>
<bottom-margin>113.386</bottom-margin>
</page-margins>
</page-layout>
<word-font font-family="FreeSerif" font-size="10"/>
<lyric-font font-family="FreeSerif" font-size="11"/>
</defaults>
<part-list>
<score-part id="P1">
<part-name>Piano</part-name>
<part-abbreviation>Pno.</part-abbreviation>
<score-instrument id="P1-I1">
<instrument-name>Piano</instrument-name>
</score-instrument>
<midi-device id="P1-I1" port="1"></midi-device>
<midi-instrument id="P1-I1">
<midi-channel>1</midi-channel>
<midi-program>1</midi-program>
<volume>78.7402</volume>
<pan>0</pan>
</midi-instrument>
</score-part>
</part-list>
<part id="P1">
<measure number="1" width="220.88">
<print>
<system-layout>
<system-margins>
<left-margin>21.00</left-margin>
<right-margin>682.28</right-margin>
</system-margins>
<top-system-distance>70.00</top-system-distance>
</system-layout>
<staff-layout number="2">
<staff-distance>65.00</staff-distance>
</staff-layout>
</print>
<attributes>
<divisions>1</divisions>
<key>
<fifths>0</fifths>
</key>
<time>
<beats>2</beats>
<beat-type>4</beat-type>
</time>
<staves>2</staves>
<clef number="1">
<sign>G</sign>
<line>2</line>
</clef>
<clef number="2">
<sign>G</sign>
<line>1</line>
</clef>
</attributes>
<note default-x="76.78" default-y="-15.00">
<pitch>
<step>C</step>
<octave>5</octave>
</pitch>
<duration>2</duration>
<voice>1</voice>
<type>half</type>
<stem>down</stem>
<staff>1</staff>
</note>
<backup>
<duration>2</duration>
</backup>
<note default-x="76.78" default-y="-130.00">
<pitch>
<step>C</step>
<octave>5</octave>
</pitch>
<duration>2</duration>
<voice>5</voice>
<type>half</type>
<stem>up</stem>
<staff>2</staff>
</note>
</measure>
<measure number="2" width="153.33">
<attributes>
<clef number="2">
<sign>F</sign>
<line>4</line>
</clef>
</attributes>
<note default-x="12.00" default-y="-10.00">
<pitch>
<step>D</step>
<octave>5</octave>
</pitch>
<duration>2</duration>
<voice>1</voice>
<type>half</type>
<stem>down</stem>
<staff>1</staff>
</note>
<backup>
<duration>2</duration>
</backup>
<note default-x="12.00" default-y="-120.00">
<pitch>
<step>E</step>
<octave>3</octave>
</pitch>
<duration>2</duration>
<voice>5</voice>
<type>half</type>
<stem>down</stem>
<staff>2</staff>
</note>
<barline location="right">
<bar-style>light-heavy</bar-style>
</barline>
</measure>
</part>
</score-partwise>
Converted Humdrum data:
**recip **kern **kern
* *part1 *part1
* *staff2 *staff1
* *clefG1 *clefG2
* *k[] *k[]
* *M2/4 *M2/4
=1- =1- =1-
2 2cc/ 2cc\
=2 =2 =2
* *clefF4 *
2 2E\ 2dd\
== == ==
*- *- *-
First example now converts properly:
Humdrum data:
**kern **kern **kern **text
*part2 *part2 *part1 *part1
*staff3 *staff2 *staff1 *staff1
*clefG2 *clefG2 *clefG2 *
*k[] *k[] *k[] *
*M2/4 *M2/4 *M2/4 *
=1- =1- =1- =1-
2cc 2dd 4.b-X wy-
. . 8cc -brać
=2 =2 =2 =2
*clefF4 * * *
2C 2cc 8dd-X na-
. . 8cc -stę-
. . 8b-X -pcę
. . 8a-X do
== == == ==
*- *- *- *-
Second example created in MuseScore still converts properly:
**kern **kern
*part1 *part1
*staff2 *staff1
*clefG1 *clefG2
*k[] *k[]
*M2/4 *M2/4
=1- =1-
2cc 2cc
=2 =2
*clefF4 *
2E 2dd
== ==
*- *-
The following example MusicXML data generates an error when converting with musicxml2hum. Here is what the music looks like in MuseScore:
The reported error is:
Here is the MusicXML export from MuseScore: