Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #269926 MusicXML export: don't duplicate fermatas near grace notes
Previously, if a note had both a fermata and a grace note then the grace note would gain a fermata during export.
- Loading branch information
Showing
3 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
src/importexport/musicxml/tests/data/testGraceFermata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 4.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> | ||
<score-partwise version="4.0"> | ||
<work> | ||
<work-title>testGraceFermata</work-title> | ||
</work> | ||
<identification> | ||
<creator type="composer">shoogle</creator> | ||
<encoding> | ||
<software>MuseScore 0.7.0</software> | ||
<encoding-date>2007-09-10</encoding-date> | ||
<supports element="accidental" type="yes"/> | ||
<supports element="beam" type="yes"/> | ||
<supports element="print" attribute="new-page" type="no"/> | ||
<supports element="print" attribute="new-system" type="no"/> | ||
<supports element="stem" type="yes"/> | ||
</encoding> | ||
</identification> | ||
<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"> | ||
<attributes> | ||
<divisions>1</divisions> | ||
<key> | ||
<fifths>0</fifths> | ||
</key> | ||
<time> | ||
<beats>4</beats> | ||
<beat-type>4</beat-type> | ||
</time> | ||
<clef> | ||
<sign>G</sign> | ||
<line>2</line> | ||
</clef> | ||
</attributes> | ||
<note> | ||
<grace slash="yes"/> | ||
<pitch> | ||
<step>A</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<voice>1</voice> | ||
<type>eighth</type> | ||
<stem>up</stem> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>G</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>2</duration> | ||
<voice>1</voice> | ||
<type>half</type> | ||
<stem>up</stem> | ||
<notations> | ||
<fermata type="upright"/> | ||
</notations> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>A</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>2</duration> | ||
<voice>1</voice> | ||
<type>half</type> | ||
<stem>up</stem> | ||
<notations> | ||
<fermata type="upright"/> | ||
</notations> | ||
</note> | ||
<note> | ||
<grace/> | ||
<pitch> | ||
<step>G</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<voice>1</voice> | ||
<type>eighth</type> | ||
<stem>up</stem> | ||
</note> | ||
<barline location="right"> | ||
<bar-style>light-heavy</bar-style> | ||
</barline> | ||
</measure> | ||
</part> | ||
</score-partwise> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters