Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #290096: fix parts corruption on timewise delete of individual beats
Ensure that all operations in Score::timeDelete() act on all excerpts rather than only on the current one.
- Loading branch information
Showing
4 changed files
with
274 additions
and
21 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
9 changes: 9 additions & 0 deletions
9
mtest/testscript/scripts/290096-remove-beat-parts-corruption-1.script
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,9 @@ | ||
init init/TrebleWithPart.mscx | ||
cmd note-input | ||
cmd escape | ||
cmd pad-note-4 | ||
cmd del-empty-measures | ||
cmd note-input | ||
cmd escape | ||
cmd time-delete | ||
test score 290096-remove-beat-parts-corruption.mscx |
11 changes: 11 additions & 0 deletions
11
mtest/testscript/scripts/290096-remove-beat-parts-corruption-2.script
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,11 @@ | ||
init init/TrebleWithPart.mscx | ||
cmd note-input | ||
cmd escape | ||
cmd pad-note-4 | ||
cmd del-empty-measures | ||
cmd note-input | ||
cmd escape | ||
# In this scenario remove the second rest instead of the first one | ||
cmd next-chord | ||
cmd time-delete | ||
test score 290096-remove-beat-parts-corruption.mscx |
219 changes: 219 additions & 0 deletions
219
mtest/testscript/scripts/290096-remove-beat-parts-corruption.mscx
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,219 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="3.01"> | ||
<programVersion>3.4.0</programVersion> | ||
<programRevision>042303c</programRevision> | ||
<Score> | ||
<LayerTag id="0" tag="default"></LayerTag> | ||
<currentLayer>0</currentLayer> | ||
<Division>480</Division> | ||
<Style> | ||
<pageWidth>8.27</pageWidth> | ||
<pageHeight>11.69</pageHeight> | ||
<pagePrintableWidth>7.4826</pagePrintableWidth> | ||
<lastSystemFillLimit>0</lastSystemFillLimit> | ||
<Spatium>1.76389</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">2018-11-12</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">Treble</metaTag> | ||
<Part> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
</Staff> | ||
<trackName>Piano</trackName> | ||
<Instrument> | ||
<longName>Piano</longName> | ||
<shortName>Pno.</shortName> | ||
<trackName>Piano</trackName> | ||
<minPitchP>21</minPitchP> | ||
<maxPitchP>108</maxPitchP> | ||
<minPitchA>21</minPitchA> | ||
<maxPitchA>108</maxPitchA> | ||
<instrumentId>keyboard.piano</instrumentId> | ||
<Articulation> | ||
<velocity>100</velocity> | ||
<gateTime>95</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>120</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
<program value="0"/> | ||
<synti>Fluid</synti> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<VBox> | ||
<height>10</height> | ||
<linkedMain/> | ||
<Text> | ||
<linkedMain/> | ||
<style>Title</style> | ||
<text>Treble</text> | ||
</Text> | ||
</VBox> | ||
<Measure len="3/4"> | ||
<voice> | ||
<TimeSig> | ||
<linkedMain/> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Rest> | ||
<linkedMain/> | ||
<durationType>quarter</durationType> | ||
</Rest> | ||
<Rest> | ||
<linkedMain/> | ||
<durationType>half</durationType> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
<Score> | ||
<LayerTag id="0" tag="default"></LayerTag> | ||
<currentLayer>0</currentLayer> | ||
<Division>480</Division> | ||
<Style> | ||
<pageWidth>8.27</pageWidth> | ||
<pageHeight>11.69</pageHeight> | ||
<pagePrintableWidth>7.4826</pagePrintableWidth> | ||
<lastSystemFillLimit>0</lastSystemFillLimit> | ||
<createMultiMeasureRests>1</createMultiMeasureRests> | ||
<Spatium>1.76389</Spatium> | ||
</Style> | ||
<showInvisible>1</showInvisible> | ||
<showUnprintable>1</showUnprintable> | ||
<showFrames>1</showFrames> | ||
<showMargins>0</showMargins> | ||
<metaTag name="partName">Piano</metaTag> | ||
<Part> | ||
<Staff id="1"> | ||
<linkedTo>1</linkedTo> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
</Staff> | ||
<trackName>Piano</trackName> | ||
<Instrument> | ||
<longName>Piano</longName> | ||
<shortName>Pno.</shortName> | ||
<trackName>Piano</trackName> | ||
<minPitchP>21</minPitchP> | ||
<maxPitchP>108</maxPitchP> | ||
<minPitchA>21</minPitchA> | ||
<maxPitchA>108</maxPitchA> | ||
<instrumentId>keyboard.piano</instrumentId> | ||
<Articulation> | ||
<velocity>100</velocity> | ||
<gateTime>95</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>120</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
<program value="0"/> | ||
<synti>Fluid</synti> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<VBox> | ||
<height>10</height> | ||
<linked> | ||
</linked> | ||
<Text> | ||
<linked> | ||
</linked> | ||
<style>Title</style> | ||
<text>Treble</text> | ||
</Text> | ||
<Text> | ||
<style>Instrument Name (Part)</style> | ||
<text>Piano</text> | ||
</Text> | ||
</VBox> | ||
<Measure len="3/4"> | ||
<voice> | ||
<TimeSig> | ||
<linked> | ||
</linked> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Rest> | ||
<linked> | ||
</linked> | ||
<durationType>quarter</durationType> | ||
</Rest> | ||
<Rest> | ||
<linked> | ||
</linked> | ||
<durationType>half</durationType> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
<name>Piano</name> | ||
</Score> | ||
</Score> | ||
</museScore> |