Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Sep 11, 2024
1 parent 88c75c6 commit edbfe71
Show file tree
Hide file tree
Showing 9 changed files with 2,358 additions and 0 deletions.
403 changes: 403 additions & 0 deletions src/importexport/musicxml/tests/data/importTie1.xml

Large diffs are not rendered by default.

425 changes: 425 additions & 0 deletions src/importexport/musicxml/tests/data/importTie1_ref.mscx

Large diffs are not rendered by default.

366 changes: 366 additions & 0 deletions src/importexport/musicxml/tests/data/importTie2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,366 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 4.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="4.0">
<identification>
<rights>©</rights>
<encoding>
<software>Finale v27.4 for Windows</software>
<encoding-date>2024-09-11</encoding-date>
<supports attribute="new-system" element="print" type="yes" value="yes"/>
<supports attribute="new-page" element="print" type="yes" value="yes"/>
<supports element="accidental" type="yes"/>
<supports element="beam" type="yes"/>
<supports element="stem" type="yes"/>
</encoding>
</identification>
<defaults>
<scaling>
<millimeters>7.2319</millimeters>
<tenths>40</tenths>
</scaling>
<page-layout>
<page-height>1545</page-height>
<page-width>1194</page-width>
<page-margins type="both">
<left-margin>140</left-margin>
<right-margin>70</right-margin>
<top-margin>70</top-margin>
<bottom-margin>70</bottom-margin>
</page-margins>
</page-layout>
<system-layout>
<system-margins>
<left-margin>0</left-margin>
<right-margin>0</right-margin>
</system-margins>
<system-distance>121</system-distance>
<top-system-distance>70</top-system-distance>
</system-layout>
<staff-layout>
<staff-distance>80</staff-distance>
</staff-layout>
<appearance>
<line-width type="stem">0.9115</line-width>
<line-width type="beam">5</line-width>
<line-width type="staff">0.9115</line-width>
<line-width type="light barline">1.0026</line-width>
<line-width type="heavy barline">5</line-width>
<line-width type="leger">1.1003</line-width>
<line-width type="ending">1.3021</line-width>
<line-width type="wedge">1.0026</line-width>
<line-width type="enclosure">1.3021</line-width>
<line-width type="tuplet bracket">1.0026</line-width>
<note-size type="grace">60</note-size>
<note-size type="cue">60</note-size>
<distance type="hyphen">120</distance>
<distance type="beam">7.5</distance>
</appearance>
<music-font font-family="Finale Maestro,engraved" font-size="20.5"/>
<word-font font-family="Times New Roman" font-size="10.25"/>
</defaults>
<credit page="1">
<credit-type>rights</credit-type>
<credit-words default-x="632" default-y="53" font-size="10" justify="center" valign="bottom">©</credit-words>
</credit>
<credit page="1">
<credit-type>part name</credit-type>
<credit-words default-x="140" default-y="1478" font-size="12" valign="top">Score</credit-words>
</credit>
<part-list>
<score-part id="P1">
<part-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="p1.musicxml" xlink:show="new" xlink:title="Part 1"/>
<part-name print-object="no">MusicXML Part</part-name>
<group>score</group>
<score-instrument id="P1-I1">
<instrument-name>ARIA Player</instrument-name>
<virtual-instrument>
<virtual-library>Garritan Instruments for Finale</virtual-library>
<virtual-name>005. Keyboards/Steinway Piano</virtual-name>
</virtual-instrument>
</score-instrument>
<midi-device>ARIA Player</midi-device>
<midi-instrument id="P1-I1">
<midi-channel>1</midi-channel>
<midi-program>1</midi-program>
<volume>80</volume>
<pan>0</pan>
</midi-instrument>
</score-part>
</part-list>
<!--=========================================================-->
<part id="P1">
<measure number="1" width="471">
<print>
<system-layout>
<system-margins>
<left-margin>70</left-margin>
<right-margin>0</right-margin>
</system-margins>
<top-system-distance>177</top-system-distance>
</system-layout>
<measure-numbering multiple-rest-always="no" multiple-rest-range="no" system="only-top">system</measure-numbering>
</print>
<attributes>
<divisions>2</divisions>
<key>
<fifths>0</fifths>
<mode>major</mode>
</key>
<time>
<beats>4</beats>
<beat-type>4</beat-type>
</time>
<staves>2</staves>
<clef number="1">
<sign>G</sign>
<line>2</line>
</clef>
<clef number="2">
<sign>F</sign>
<line>4</line>
</clef>
</attributes>
<sound tempo="120">
<swing>
<straight/>
</swing>
</sound>
<note default-x="84">
<pitch>
<step>D</step>
<octave>5</octave>
</pitch>
<duration>2</duration>
<tie type="start"/>
<voice>1</voice>
<type>quarter</type>
<stem default-y="18">up</stem>
<staff>1</staff>
<notations>
<tied orientation="over" type="start"/>
</notations>
</note>
<note default-x="191">
<rest>
<display-step>A</display-step>
<display-octave>5</display-octave>
</rest>
<duration>2</duration>
<voice>1</voice>
<type>quarter</type>
<staff>1</staff>
</note>
<note default-x="296">
<rest>
<display-step>A</display-step>
<display-octave>5</display-octave>
</rest>
<duration>4</duration>
<voice>1</voice>
<type>half</type>
<staff>1</staff>
</note>
<backup>
<duration>8</duration>
</backup>
<note default-x="84">
<rest>
<display-step>C</display-step>
<display-octave>4</display-octave>
</rest>
<duration>2</duration>
<voice>2</voice>
<type>quarter</type>
<staff>1</staff>
</note>
<note default-x="191">
<pitch>
<step>D</step>
<octave>5</octave>
</pitch>
<duration>2</duration>
<voice>2</voice>
<type>quarter</type>
<stem default-y="-45">down</stem>
<staff>1</staff>
</note>
<note default-x="296">
<rest>
<display-step>C</display-step>
<display-octave>4</display-octave>
</rest>
<duration>4</duration>
<voice>2</voice>
<type>half</type>
<staff>1</staff>
</note>
<backup>
<duration>8</duration>
</backup>
<note>
<rest measure="yes"/>
<duration>8</duration>
<voice>3</voice>
<staff>2</staff>
</note>
</measure>
<!--=======================================================-->
<measure number="2" width="442">
<note default-x="14">
<pitch>
<step>E</step>
<octave>4</octave>
</pitch>
<duration>2</duration>
<tie type="start"/>
<voice>1</voice>
<type>quarter</type>
<stem default-y="-5">up</stem>
<staff>1</staff>
<notations>
<tied orientation="over" type="start"/>
</notations>
</note>
<note default-x="119">
<rest>
<display-step>A</display-step>
<display-octave>5</display-octave>
</rest>
<duration>2</duration>
<voice>1</voice>
<type>quarter</type>
<staff>1</staff>
</note>
<note default-x="222">
<rest>
<display-step>A</display-step>
<display-octave>5</display-octave>
</rest>
<duration>4</duration>
<voice>1</voice>
<type>half</type>
<staff>1</staff>
</note>
<backup>
<duration>8</duration>
</backup>
<note default-x="14">
<rest>
<display-step>C</display-step>
<display-octave>4</display-octave>
</rest>
<duration>2</duration>
<voice>2</voice>
<type>quarter</type>
<staff>1</staff>
</note>
<note default-x="119">
<pitch>
<step>E</step>
<octave>4</octave>
</pitch>
<duration>2</duration>
<voice>2</voice>
<type>quarter</type>
<stem default-y="-68">down</stem>
<staff>1</staff>
</note>
<note default-x="222">
<rest>
<display-step>C</display-step>
<display-octave>4</display-octave>
</rest>
<duration>4</duration>
<voice>2</voice>
<type>half</type>
<staff>1</staff>
</note>
<backup>
<duration>8</duration>
</backup>
<note default-x="13">
<rest>
<display-step>C</display-step>
<display-octave>4</display-octave>
</rest>
<duration>4</duration>
<voice>3</voice>
<type>half</type>
<staff>2</staff>
</note>
<note default-x="223">
<rest>
<display-step>C</display-step>
<display-octave>4</display-octave>
</rest>
<duration>2</duration>
<voice>3</voice>
<type>quarter</type>
<staff>2</staff>
</note>
<note default-x="328">
<pitch>
<step>F</step>
<octave>4</octave>
</pitch>
<duration>2</duration>
<voice>3</voice>
<type>quarter</type>
<stem default-y="53.5">up</stem>
<staff>2</staff>
</note>
<backup>
<duration>8</duration>
</backup>
<note default-x="14">
<rest>
<display-step>E</display-step>
<display-octave>2</display-octave>
</rest>
<duration>2</duration>
<voice>4</voice>
<type>quarter</type>
<staff>2</staff>
</note>
<note default-x="119">
<rest>
<display-step>E</display-step>
<display-octave>2</display-octave>
</rest>
<duration>2</duration>
<voice>4</voice>
<type>quarter</type>
<staff>2</staff>
</note>
<note default-x="223">
<pitch>
<step>F</step>
<octave>4</octave>
</pitch>
<duration>2</duration>
<tie type="start"/>
<voice>4</voice>
<type>quarter</type>
<stem default-y="-20">down</stem>
<staff>2</staff>
<notations>
<tied orientation="under" type="start"/>
</notations>
</note>
<note default-x="328">
<rest>
<display-step>E</display-step>
<display-octave>2</display-octave>
</rest>
<duration>2</duration>
<voice>4</voice>
<type>quarter</type>
<staff>2</staff>
</note>
<barline location="right">
<bar-style>light-heavy</bar-style>
</barline>
</measure>
</part>
<!--=========================================================-->
</score-partwise>
Loading

0 comments on commit edbfe71

Please sign in to comment.