Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lvinken committed Dec 26, 2012
1 parent ddb0eba commit dd5ae87
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mscore/importxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4487,7 +4487,7 @@ void MusicXml::xmlNotations(Note* note, ChordRest* cr, int trk, int ticks, QDomE

if (tremolo) {
qDebug("tremolo=%d tremoloType='%s'", tremolo, qPrintable(tremoloType));
if (tremolo == 1 || tremolo == 2 || tremolo == 3) {
if (tremolo == 1 || tremolo == 2 || tremolo == 3 || tremolo == 4) {
if (tremoloType == "" || tremoloType == "single") {
Tremolo* t = new Tremolo(score);
switch (tremolo) {
Expand Down
20 changes: 18 additions & 2 deletions mtest/musicxml/io/testTremolo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@
</note>
</measure>
<measure number="2">
<note>
<pitch>
<step>G</step>
<octave>4</octave>
</pitch>
<duration>64</duration>
<voice>1</voice>
<type>whole</type>
<notations>
<ornaments>
<tremolo type="single">4</tremolo>
</ornaments>
</notations>
</note>
</measure>
<measure number="3">
<note>
<pitch>
<step>A</step>
Expand Down Expand Up @@ -158,7 +174,7 @@
<type>64th</type>
</note>
</measure>
<measure number="3">
<measure number="4">
<note>
<pitch>
<step>G</step>
Expand Down Expand Up @@ -220,7 +236,7 @@
</notations>
</note>
</measure>
<measure number="4">
<measure number="5">
<note>
<pitch>
<step>B</step>
Expand Down
20 changes: 18 additions & 2 deletions test/musicxml/testTremolo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@
</note>
</measure>
<measure number="2">
<note>
<pitch>
<step>G</step>
<octave>4</octave>
</pitch>
<duration>64</duration>
<voice>1</voice>
<type>whole</type>
<notations>
<ornaments>
<tremolo type="single">4</tremolo>
</ornaments>
</notations>
</note>
</measure>
<measure number="3">
<note>
<pitch>
<step>A</step>
Expand Down Expand Up @@ -158,7 +174,7 @@
<type>64th</type>
</note>
</measure>
<measure number="3">
<measure number="4">
<note>
<pitch>
<step>G</step>
Expand Down Expand Up @@ -220,7 +236,7 @@
</notations>
</note>
</measure>
<measure number="4">
<measure number="5">
<note>
<pitch>
<step>B</step>
Expand Down

0 comments on commit dd5ae87

Please sign in to comment.