-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from leleogere/support_print-object
Add a parameter to ignore invisible objects when parsing MusicXML files
- Loading branch information
Showing
4 changed files
with
276 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
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
211 changes: 211 additions & 0 deletions
211
tests/data/musicxml/test_ignore_invisible_objects.musicxml
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,211 @@ | ||
<?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>Partition sans titre</work-title> | ||
</work> | ||
<identification> | ||
<creator type="composer">Compositeur / Arrangeur</creator> | ||
<encoding> | ||
<software>MuseScore 4.4.4</software> | ||
<encoding-date>2024-12-13</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> | ||
<instrument-sound>keyboard.piano</instrument-sound> | ||
</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>4</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> | ||
</attributes> | ||
<note> | ||
<pitch> | ||
<step>F</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>up</stem> | ||
<staff>1</staff> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>E</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>up</stem> | ||
<staff>1</staff> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>D</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>up</stem> | ||
<staff>1</staff> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>C</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>up</stem> | ||
<staff>1</staff> | ||
</note> | ||
<backup> | ||
<duration>4</duration> | ||
</backup> | ||
<note> | ||
<pitch> | ||
<step>C</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>2</voice> | ||
<type>16th</type> | ||
<stem>none</stem> | ||
<notehead>none</notehead> | ||
<staff>1</staff> | ||
<beam number="1">begin</beam> | ||
<beam number="2">begin</beam> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>D</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>2</voice> | ||
<type>16th</type> | ||
<stem>none</stem> | ||
<notehead>none</notehead> | ||
<staff>1</staff> | ||
<beam number="1">continue</beam> | ||
<beam number="2">continue</beam> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>C</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>2</voice> | ||
<type>16th</type> | ||
<stem>none</stem> | ||
<notehead>none</notehead> | ||
<staff>1</staff> | ||
<beam number="1">continue</beam> | ||
<beam number="2">continue</beam> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>D</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>2</voice> | ||
<type>16th</type> | ||
<stem>none</stem> | ||
<notehead>none</notehead> | ||
<staff>1</staff> | ||
<beam number="1">end</beam> | ||
<beam number="2">end</beam> | ||
</note> | ||
<backup> | ||
<duration>16</duration> | ||
</backup> | ||
<note> | ||
<pitch> | ||
<step>C</step> | ||
<octave>3</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<type>quarter</type> | ||
<stem>up</stem> | ||
<staff>2</staff> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>D</step> | ||
<octave>3</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<type>quarter</type> | ||
<stem>none</stem> | ||
<notehead>none</notehead> | ||
<staff>2</staff> | ||
</note> | ||
<note print-object="no"> | ||
<rest/> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<type>quarter</type> | ||
<staff>2</staff> | ||
</note> | ||
<note> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>2</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>5</voice> | ||
<type>quarter</type> | ||
<accidental>flat</accidental> | ||
<stem>up</stem> | ||
<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