-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset offset when placement is changed
- Loading branch information
Showing
4 changed files
with
422 additions
and
1 deletion.
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
194 changes: 194 additions & 0 deletions
194
src/importexport/musicxml/tests/data/testPlacementOffsetDefaults.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,194 @@ | ||
<?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 4.4.1</software> | ||
<encoding-date>2024-09-08</encoding-date> | ||
<supports element="accidental" type="yes"/> | ||
<supports element="beam" type="yes"/> | ||
<supports element="print" attribute="new-page" type="yes" value="yes"/> | ||
<supports element="print" attribute="new-system" type="yes" value="yes"/> | ||
<supports element="stem" type="yes"/> | ||
</encoding> | ||
</identification> | ||
<defaults> | ||
<scaling> | ||
<millimeters>6.99911</millimeters> | ||
<tenths>40</tenths> | ||
</scaling> | ||
<page-layout> | ||
<page-height>1696.94</page-height> | ||
<page-width>1200.48</page-width> | ||
<page-margins type="even"> | ||
<left-margin>85.7252</left-margin> | ||
<right-margin>85.7252</right-margin> | ||
<top-margin>85.7252</top-margin> | ||
<bottom-margin>85.7252</bottom-margin> | ||
</page-margins> | ||
<page-margins type="odd"> | ||
<left-margin>85.7252</left-margin> | ||
<right-margin>85.7252</right-margin> | ||
<top-margin>85.7252</top-margin> | ||
<bottom-margin>85.7252</bottom-margin> | ||
</page-margins> | ||
</page-layout> | ||
<appearance> | ||
<line-width type="light barline">1.8</line-width> | ||
<line-width type="heavy barline">5.5</line-width> | ||
<line-width type="beam">5</line-width> | ||
<line-width type="bracket">4.5</line-width> | ||
<line-width type="dashes">1</line-width> | ||
<line-width type="enclosure">1</line-width> | ||
<line-width type="ending">1.1</line-width> | ||
<line-width type="extend">1</line-width> | ||
<line-width type="leger">1.6</line-width> | ||
<line-width type="pedal">1.1</line-width> | ||
<line-width type="octave shift">1.1</line-width> | ||
<line-width type="slur middle">2.1</line-width> | ||
<line-width type="slur tip">0.5</line-width> | ||
<line-width type="staff">1.1</line-width> | ||
<line-width type="stem">1</line-width> | ||
<line-width type="tie middle">2.1</line-width> | ||
<line-width type="tie tip">0.5</line-width> | ||
<line-width type="tuplet bracket">1</line-width> | ||
<line-width type="wedge">1.2</line-width> | ||
<note-size type="cue">70</note-size> | ||
<note-size type="grace">70</note-size> | ||
<note-size type="grace-cue">49</note-size> | ||
</appearance> | ||
<music-font font-family="Leland"/> | ||
<word-font font-family="Edwin" font-size="10"/> | ||
<lyric-font font-family="Edwin" font-size="10"/> | ||
</defaults> | ||
<credit page="1"> | ||
<credit-type>title</credit-type> | ||
<credit-words default-x="600.241935" default-y="1611.210312" justify="center" valign="top" font-size="22">Untitled score</credit-words> | ||
</credit> | ||
<credit page="1"> | ||
<credit-type>subtitle</credit-type> | ||
<credit-words default-x="600.241935" default-y="1554.060198" justify="center" valign="top" font-size="14">Subtitle</credit-words> | ||
</credit> | ||
<credit page="1"> | ||
<credit-type>composer</credit-type> | ||
<credit-words default-x="1114.7587" default-y="1511.210312" justify="right" valign="bottom">Composer / arranger</credit-words> | ||
</credit> | ||
<part-list> | ||
<score-part id="P1"> | ||
<part-name>Voice</part-name> | ||
<part-abbreviation>Vo.</part-abbreviation> | ||
<score-instrument id="P1-I1"> | ||
<instrument-name>Voice</instrument-name> | ||
<instrument-sound>voice.vocals</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>53</midi-program> | ||
<volume>78.7402</volume> | ||
<pan>0</pan> | ||
</midi-instrument> | ||
</score-part> | ||
</part-list> | ||
<part id="P1"> | ||
<measure number="1" width="519.24"> | ||
<print> | ||
<system-layout> | ||
<system-margins> | ||
<left-margin>50</left-margin> | ||
<right-margin>0</right-margin> | ||
</system-margins> | ||
<top-system-distance>170</top-system-distance> | ||
</system-layout> | ||
</print> | ||
<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 default-x="282.33" default-y="-10"> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<lyric number="1" default-y="-80" placement="below"> | ||
<syllabic>single</syllabic> | ||
<text>Lyrics</text> | ||
</lyric> | ||
</note> | ||
</measure> | ||
<measure number="2" width="459.79"> | ||
<note default-x="222.5" default-y="-10"> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<lyric number="1" default-y="-80" placement="below" relative-x="10"> | ||
<syllabic>single</syllabic> | ||
<text>lyrics</text> | ||
</lyric> | ||
</note> | ||
</measure> | ||
<measure number="3" width="533.18"> | ||
<print new-system="yes"> | ||
<system-layout> | ||
<system-margins> | ||
<left-margin>0</left-margin> | ||
<right-margin>-0</right-margin> | ||
</system-margins> | ||
<system-distance>205</system-distance> | ||
</system-layout> | ||
</print> | ||
<note default-x="275.74" default-y="-10"> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<lyric number="1" default-y="40" placement="above"> | ||
<syllabic>single</syllabic> | ||
<text>lyrics</text> | ||
</lyric> | ||
</note> | ||
</measure> | ||
<measure number="4" width="495.85"> | ||
<note default-x="240.53" default-y="-10"> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<lyric number="1" default-y="40" placement="above" relative-x="10"> | ||
<syllabic>single</syllabic> | ||
<text>lyrics</text> | ||
</lyric> | ||
</note> | ||
</measure> | ||
<measure number="5" width="125.59"> | ||
<print new-system="yes"> | ||
<system-layout> | ||
<system-margins> | ||
<left-margin>0</left-margin> | ||
<right-margin>903.44</right-margin> | ||
</system-margins> | ||
<system-distance>205</system-distance> | ||
</system-layout> | ||
</print> | ||
<note default-x="67.35" default-y="-10"> | ||
<rest measure="yes"/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
</note> | ||
<barline location="right"> | ||
<bar-style>light-heavy</bar-style> | ||
</barline> | ||
</measure> | ||
</part> | ||
</score-partwise> |
Oops, something went wrong.