forked from musescore/MuseScore
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #293441: [MusicXML export] invalid XML export: direction-type is …
…missing child element TextBase::fragmentList() (last updated by commit 10ebbb9 on Aug 1, 2018) is missing a fix introduced in the similar function TextBase::plainText() (added by commit 3653f4b on Nov 19, 2018). The fix relayouts a clone of the TextBase when it encounters a TextBase with an invalid layout. Backport of musescore#17848
- Loading branch information
1 parent
c8af104
commit 7dce528
Showing
6 changed files
with
354 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="3.02"> | ||
<programVersion>3.6.2</programVersion> | ||
<programRevision>3224f34</programRevision> | ||
<Score> | ||
<LayerTag id="0" tag="default"></LayerTag> | ||
<currentLayer>0</currentLayer> | ||
<Division>480</Division> | ||
<Style> | ||
<pageWidth>8.27</pageWidth> | ||
<pageHeight>11.69</pageHeight> | ||
<enableVerticalSpread>1</enableVerticalSpread> | ||
<createMultiMeasureRests>1</createMultiMeasureRests> | ||
<Spatium>1.74978</Spatium> | ||
</Style> | ||
<showInvisible>1</showInvisible> | ||
<showUnprintable>1</showUnprintable> | ||
<showFrames>1</showFrames> | ||
<showMargins>0</showMargins> | ||
<metaTag name="arranger"></metaTag> | ||
<metaTag name="composer"></metaTag> | ||
<metaTag name="copyright"></metaTag> | ||
<metaTag name="creationDate">2023-06-03</metaTag> | ||
<metaTag name="lyricist"></metaTag> | ||
<metaTag name="movementNumber"></metaTag> | ||
<metaTag name="movementTitle"></metaTag> | ||
<metaTag name="platform">Linux</metaTag> | ||
<metaTag name="poet"></metaTag> | ||
<metaTag name="source"></metaTag> | ||
<metaTag name="translator"></metaTag> | ||
<metaTag name="workNumber"></metaTag> | ||
<metaTag name="workTitle">Issue #293441 test file by MuseScore 3.6.2</metaTag> | ||
<Order id="orchestral" customized="1"> | ||
<name>Orchestral</name> | ||
<instrument id="voice"> | ||
<family id="voices">Voices</family> | ||
</instrument> | ||
<section id="woodwind" brackets="true" showSystemMarkings="true" barLineSpan="true" thinBrackets="true"> | ||
<family>flutes</family> | ||
<family>oboes</family> | ||
<family>clarinets</family> | ||
<family>saxophones</family> | ||
<family>bassoons</family> | ||
<unsorted group="woodwinds"/> | ||
</section> | ||
<section id="brass" brackets="true" showSystemMarkings="false" barLineSpan="true" thinBrackets="true"> | ||
<family>horns</family> | ||
<family>trumpets</family> | ||
<family>cornets</family> | ||
<family>flugelhorns</family> | ||
<family>trombones</family> | ||
<family>tubas</family> | ||
</section> | ||
<section id="timpani" brackets="true" showSystemMarkings="false" barLineSpan="true" thinBrackets="true"> | ||
<family>timpani</family> | ||
</section> | ||
<section id="percussion" brackets="true" showSystemMarkings="false" barLineSpan="true" thinBrackets="true"> | ||
<family>keyboard-percussion</family> | ||
<family>drums</family> | ||
<family>unpitched-metal-percussion</family> | ||
<family>unpitched-wooden-percussion</family> | ||
<family>other-percussion</family> | ||
</section> | ||
<family>keyboards</family> | ||
<family>harps</family> | ||
<family>organs</family> | ||
<family>synths</family> | ||
<section id="plucked-strings" brackets="true" showSystemMarkings="false" barLineSpan="true" thinBrackets="true"> | ||
<family>plucked-strings</family> | ||
</section> | ||
<soloists/> | ||
<section id="voices" brackets="true" showSystemMarkings="false" barLineSpan="false" thinBrackets="true"> | ||
<family>voices</family> | ||
</section> | ||
<section id="strings" brackets="true" showSystemMarkings="true" barLineSpan="true" thinBrackets="true"> | ||
<family>orchestral-strings</family> | ||
</section> | ||
<unsorted/> | ||
</Order> | ||
<Part> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
</Staff> | ||
<trackName>Voice</trackName> | ||
<Instrument id="voice"> | ||
<longName>Voice</longName> | ||
<shortName>Vo.</shortName> | ||
<trackName>Voice</trackName> | ||
<minPitchP>38</minPitchP> | ||
<maxPitchP>84</maxPitchP> | ||
<minPitchA>41</minPitchA> | ||
<maxPitchA>79</maxPitchA> | ||
<instrumentId>voice.vocals</instrumentId> | ||
<Articulation> | ||
<velocity>100</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Articulation name="staccatissimo"> | ||
<velocity>100</velocity> | ||
<gateTime>33</gateTime> | ||
</Articulation> | ||
<Articulation name="staccato"> | ||
<velocity>100</velocity> | ||
<gateTime>50</gateTime> | ||
</Articulation> | ||
<Articulation name="portato"> | ||
<velocity>100</velocity> | ||
<gateTime>67</gateTime> | ||
</Articulation> | ||
<Articulation name="tenuto"> | ||
<velocity>100</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Articulation name="marcato"> | ||
<velocity>120</velocity> | ||
<gateTime>67</gateTime> | ||
</Articulation> | ||
<Articulation name="sforzato"> | ||
<velocity>150</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Articulation name="sforzatoStaccato"> | ||
<velocity>150</velocity> | ||
<gateTime>50</gateTime> | ||
</Articulation> | ||
<Articulation name="marcatoStaccato"> | ||
<velocity>120</velocity> | ||
<gateTime>50</gateTime> | ||
</Articulation> | ||
<Articulation name="marcatoTenuto"> | ||
<velocity>120</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
<controller ctrl="0" value="0"/> | ||
<controller ctrl="32" value="17"/> | ||
<program value="52"/> | ||
<synti>Fluid</synti> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<VBox> | ||
<height>14.1434</height> | ||
<boxAutoSize>0</boxAutoSize> | ||
<Text> | ||
<style>Title</style> | ||
<text>Issue #293441 test file by MuseScore 3.6.2</text> | ||
</Text> | ||
<Text> | ||
<style>Subtitle</style> | ||
<text>Verify a TextBase in a multimeasure rest is exported correctly | ||
During MusicXML export, the TempoText contains an invalid layout</text> | ||
</Text> | ||
</VBox> | ||
<!-- Measure 1 --> | ||
<Measure> | ||
<voice> | ||
<TimeSig> | ||
<lid>0</lid> | ||
<linkedMain/> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Tempo> | ||
<tempo>1.3333299999999999</tempo> | ||
<followText>1</followText> | ||
<lid>1</lid> | ||
<linkedMain/> | ||
<text><sym>metNoteQuarterUp</sym> = 80</text> | ||
</Tempo> | ||
<Rest> | ||
<durationType>measure</durationType> | ||
<duration>4/4</duration> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
<!-- Measure 1 --> | ||
<Measure len="12/4"> | ||
<multiMeasureRest>3</multiMeasureRest> | ||
<voice> | ||
<TimeSig> | ||
<lid>0</lid> | ||
<linked> | ||
<indexDiff>-2</indexDiff> | ||
</linked> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Tempo> | ||
<tempo>1.3333299999999999</tempo> | ||
<followText>1</followText> | ||
<lid>1</lid> | ||
<linked> | ||
<indexDiff>-2</indexDiff> | ||
</linked> | ||
<text><sym>metNoteQuarterUp</sym> = 80</text> | ||
</Tempo> | ||
<Rest> | ||
<durationType>measure</durationType> | ||
<duration>12/4</duration> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
<!-- Measure 2 --> | ||
<Measure> | ||
<voice> | ||
<Rest> | ||
<durationType>measure</durationType> | ||
<duration>4/4</duration> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
<!-- Measure 3 --> | ||
<Measure> | ||
<voice> | ||
<Rest> | ||
<durationType>measure</durationType> | ||
<duration>4/4</duration> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
</Score> | ||
</museScore> |
Oops, something went wrong.