-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #307530: MusicXML export for hidden staves
- Loading branch information
1 parent
415d5c0
commit c6dc78c
Showing
4 changed files
with
311 additions
and
13 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
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
275 changes: 275 additions & 0 deletions
275
src/importexport/musicxml/tests/data/testHiddenStaves.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,275 @@ | ||
<?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>Untitled Score</work-title> | ||
</work> | ||
<identification> | ||
<creator type="composer">Composer / arranger</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> | ||
<part-group type="start" number="1"> | ||
<group-symbol>bracket</group-symbol> | ||
</part-group> | ||
<score-part id="P1"> | ||
<part-name>Flute</part-name> | ||
<part-abbreviation>Fl.</part-abbreviation> | ||
<score-instrument id="P1-I1"> | ||
<instrument-name>Flute</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>74</midi-program> | ||
<volume>78.7402</volume> | ||
<pan>0</pan> | ||
</midi-instrument> | ||
</score-part> | ||
<score-part id="P2"> | ||
<part-name>Bassoon</part-name> | ||
<part-abbreviation>Bsn.</part-abbreviation> | ||
<score-instrument id="P2-I1"> | ||
<instrument-name>Bassoon</instrument-name> | ||
</score-instrument> | ||
<midi-device id="P2-I1" port="1"></midi-device> | ||
<midi-instrument id="P2-I1"> | ||
<midi-channel>2</midi-channel> | ||
<midi-program>71</midi-program> | ||
<volume>78.7402</volume> | ||
<pan>0</pan> | ||
</midi-instrument> | ||
</score-part> | ||
<part-group type="stop" number="1"/> | ||
<score-part id="P3"> | ||
<part-name>Harpsichord</part-name> | ||
<part-abbreviation>Hch.</part-abbreviation> | ||
<score-instrument id="P3-I1"> | ||
<instrument-name>Harpsichord</instrument-name> | ||
</score-instrument> | ||
<midi-device id="P3-I1" port="1"></midi-device> | ||
<midi-instrument id="P3-I1"> | ||
<midi-channel>3</midi-channel> | ||
<midi-program>7</midi-program> | ||
<volume>78.7402</volume> | ||
<pan>0</pan> | ||
</midi-instrument> | ||
</score-part> | ||
<score-part id="P4"> | ||
<part-name>Piano</part-name> | ||
<part-abbreviation>Pno.</part-abbreviation> | ||
<score-instrument id="P4-I1"> | ||
<instrument-name>Piano</instrument-name> | ||
</score-instrument> | ||
<midi-device id="P4-I1" port="1"></midi-device> | ||
<midi-instrument id="P4-I1"> | ||
<midi-channel>4</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> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
</note> | ||
</measure> | ||
<measure number="2"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
</note> | ||
<barline location="right"> | ||
<bar-style>light-heavy</bar-style> | ||
</barline> | ||
</measure> | ||
</part> | ||
<part id="P2"> | ||
<measure number="1"> | ||
<attributes> | ||
<divisions>1</divisions> | ||
<key> | ||
<fifths>0</fifths> | ||
</key> | ||
<time> | ||
<beats>4</beats> | ||
<beat-type>4</beat-type> | ||
</time> | ||
<clef> | ||
<sign>F</sign> | ||
<line>4</line> | ||
</clef> | ||
<staff-details print-object="no"> | ||
<staff-lines>5</staff-lines> | ||
</staff-details> | ||
</attributes> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
</note> | ||
</measure> | ||
<measure number="2"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
</note> | ||
<barline location="right"> | ||
<bar-style>light-heavy</bar-style> | ||
</barline> | ||
</measure> | ||
</part> | ||
<part id="P3"> | ||
<measure number="1"> | ||
<attributes> | ||
<divisions>1</divisions> | ||
<key> | ||
<fifths>0</fifths> | ||
</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> | ||
<staff-details number="1" print-object="no"> | ||
<staff-lines>5</staff-lines> | ||
</staff-details> | ||
<staff-details number="2" print-object="no"> | ||
<staff-lines>5</staff-lines> | ||
</staff-details> | ||
</attributes> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<staff>1</staff> | ||
</note> | ||
<backup> | ||
<duration>4</duration> | ||
</backup> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<staff>2</staff> | ||
</note> | ||
</measure> | ||
<measure number="2"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<staff>1</staff> | ||
</note> | ||
<backup> | ||
<duration>4</duration> | ||
</backup> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<staff>2</staff> | ||
</note> | ||
<barline location="right"> | ||
<bar-style>light-heavy</bar-style> | ||
</barline> | ||
</measure> | ||
</part> | ||
<part id="P4"> | ||
<measure number="1"> | ||
<attributes> | ||
<divisions>1</divisions> | ||
<key> | ||
<fifths>0</fifths> | ||
</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> | ||
<staff-details number="2" print-object="no"> | ||
<staff-lines>5</staff-lines> | ||
</staff-details> | ||
</attributes> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<staff>1</staff> | ||
</note> | ||
<backup> | ||
<duration>4</duration> | ||
</backup> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<staff>2</staff> | ||
</note> | ||
</measure> | ||
<measure number="2"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<staff>1</staff> | ||
</note> | ||
<backup> | ||
<duration>4</duration> | ||
</backup> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<staff>2</staff> | ||
</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