done
This commit is contained in:
parent
87d4520558
commit
963f62c81a
2 changed files with 341 additions and 0 deletions
174
test/musicxml/testDurationRoundingError.xml
Normal file
174
test/musicxml/testDurationRoundingError.xml
Normal file
|
@ -0,0 +1,174 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 2.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
|
||||||
|
<score-partwise>
|
||||||
|
<work>
|
||||||
|
<work-number>MuseScore testfile</work-number>
|
||||||
|
<work-title>Duration Rounding Error</work-title>
|
||||||
|
</work>
|
||||||
|
<identification>
|
||||||
|
<encoding>
|
||||||
|
<software>MuseScore 0.7.0</software>
|
||||||
|
<encoding-date>2007-09-10</encoding-date>
|
||||||
|
</encoding>
|
||||||
|
<miscellaneous>
|
||||||
|
<miscellaneous-field name="description">
|
||||||
|
Test handling of rounding errors in durations. Is generated by
|
||||||
|
Sibelius 7.1.2 (Direct export, not from Dolet) when the score
|
||||||
|
contains tuplets.
|
||||||
|
</miscellaneous-field>
|
||||||
|
</miscellaneous>
|
||||||
|
</identification>
|
||||||
|
<part-list>
|
||||||
|
<score-part id="P1">
|
||||||
|
<part-name>Guitar</part-name>
|
||||||
|
<part-abbreviation>Guit.</part-abbreviation>
|
||||||
|
<score-instrument id="P1-I3">
|
||||||
|
<instrument-name>Guitar</instrument-name>
|
||||||
|
</score-instrument>
|
||||||
|
<midi-instrument id="P1-I3">
|
||||||
|
<midi-channel>1</midi-channel>
|
||||||
|
<midi-program>25</midi-program>
|
||||||
|
<volume>78.7402</volume>
|
||||||
|
<pan>0</pan>
|
||||||
|
</midi-instrument>
|
||||||
|
</score-part>
|
||||||
|
</part-list>
|
||||||
|
<part id="P1">
|
||||||
|
<measure number="1">
|
||||||
|
<attributes>
|
||||||
|
<divisions>256</divisions>
|
||||||
|
<key>
|
||||||
|
<fifths>0</fifths>
|
||||||
|
<mode>major</mode>
|
||||||
|
</key>
|
||||||
|
<time>
|
||||||
|
<beats>2</beats>
|
||||||
|
<beat-type>4</beat-type>
|
||||||
|
</time>
|
||||||
|
<clef>
|
||||||
|
<sign>G</sign>
|
||||||
|
<line>2</line>
|
||||||
|
<clef-octave-change>-1</clef-octave-change>
|
||||||
|
</clef>
|
||||||
|
</attributes>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>85</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">begin</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="start" bracket="no"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>85</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">continue</beam>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>86</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">end</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="stop"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>85</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">begin</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="start" bracket="no"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>85</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">continue</beam>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>86</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">end</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="stop"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<backup>
|
||||||
|
<duration>512</duration>
|
||||||
|
</backup>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>A</step>
|
||||||
|
<octave>3</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>512</duration>
|
||||||
|
<voice>2</voice>
|
||||||
|
<type>half</type>
|
||||||
|
<stem>down</stem>
|
||||||
|
</note>
|
||||||
|
<barline location="right">
|
||||||
|
<bar-style>light-heavy</bar-style>
|
||||||
|
</barline>
|
||||||
|
</measure>
|
||||||
|
</part>
|
||||||
|
</score-partwise>
|
167
test/musicxml/testDurationRoundingError_ref.xml
Normal file
167
test/musicxml/testDurationRoundingError_ref.xml
Normal file
|
@ -0,0 +1,167 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 2.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
|
||||||
|
<score-partwise>
|
||||||
|
<work>
|
||||||
|
<work-number>MuseScore testfile</work-number>
|
||||||
|
<work-title>Duration Rounding Error</work-title>
|
||||||
|
</work>
|
||||||
|
<identification>
|
||||||
|
<encoding>
|
||||||
|
<software>MuseScore 0.7.0</software>
|
||||||
|
<encoding-date>2007-09-10</encoding-date>
|
||||||
|
</encoding>
|
||||||
|
</identification>
|
||||||
|
<part-list>
|
||||||
|
<score-part id="P1">
|
||||||
|
<part-name>Guitar</part-name>
|
||||||
|
<part-abbreviation>Guit.</part-abbreviation>
|
||||||
|
<score-instrument id="P1-I3">
|
||||||
|
<instrument-name>Guitar</instrument-name>
|
||||||
|
</score-instrument>
|
||||||
|
<midi-instrument id="P1-I3">
|
||||||
|
<midi-channel>1</midi-channel>
|
||||||
|
<midi-program>25</midi-program>
|
||||||
|
<volume>78.7402</volume>
|
||||||
|
<pan>0</pan>
|
||||||
|
</midi-instrument>
|
||||||
|
</score-part>
|
||||||
|
</part-list>
|
||||||
|
<part id="P1">
|
||||||
|
<measure number="1">
|
||||||
|
<attributes>
|
||||||
|
<divisions>3</divisions>
|
||||||
|
<key>
|
||||||
|
<fifths>0</fifths>
|
||||||
|
<mode>major</mode>
|
||||||
|
</key>
|
||||||
|
<time>
|
||||||
|
<beats>2</beats>
|
||||||
|
<beat-type>4</beat-type>
|
||||||
|
</time>
|
||||||
|
<clef>
|
||||||
|
<sign>G</sign>
|
||||||
|
<line>2</line>
|
||||||
|
<clef-octave-change>-1</clef-octave-change>
|
||||||
|
</clef>
|
||||||
|
</attributes>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>1</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">begin</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="start" bracket="no"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>1</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">continue</beam>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>1</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">end</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="stop"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>1</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">begin</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="start" bracket="no"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>1</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">continue</beam>
|
||||||
|
</note>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>C</step>
|
||||||
|
<octave>4</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>1</duration>
|
||||||
|
<voice>1</voice>
|
||||||
|
<type>eighth</type>
|
||||||
|
<time-modification>
|
||||||
|
<actual-notes>3</actual-notes>
|
||||||
|
<normal-notes>2</normal-notes>
|
||||||
|
</time-modification>
|
||||||
|
<stem>up</stem>
|
||||||
|
<beam number="1">end</beam>
|
||||||
|
<notations>
|
||||||
|
<tuplet type="stop"/>
|
||||||
|
</notations>
|
||||||
|
</note>
|
||||||
|
<backup>
|
||||||
|
<duration>6</duration>
|
||||||
|
</backup>
|
||||||
|
<note>
|
||||||
|
<pitch>
|
||||||
|
<step>A</step>
|
||||||
|
<octave>3</octave>
|
||||||
|
</pitch>
|
||||||
|
<duration>6</duration>
|
||||||
|
<voice>2</voice>
|
||||||
|
<type>half</type>
|
||||||
|
<stem>down</stem>
|
||||||
|
</note>
|
||||||
|
<barline location="right">
|
||||||
|
<bar-style>light-heavy</bar-style>
|
||||||
|
</barline>
|
||||||
|
</measure>
|
||||||
|
</part>
|
||||||
|
</score-partwise>
|
Loading…
Reference in a new issue