forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #298564: shift of manually adjusted slur on small staff
Resolves: https://musescore.org/en/node/298564 We currently write the offsets for slur grips scaled according to the staff, but we read them scaled according to the score. That's because on read, the slur hasn't been added yet, so the track is not set. I fixed the exact same issue for other lines in musescore@812a281 but slurs have their own own read/write and I neglected to make the corresponding change for them. This fixes the issue by explicitly scaling according to score. Note there are other reasons why this makes sense, see other comments in musescore#4827 for more information on the scaling of offsets and other properties.
- Loading branch information
1 parent
f1d18e5
commit 29a9ee0
Showing
5 changed files
with
364 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="3.01"> | ||
<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> | ||
<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="lyricist"></metaTag> | ||
<metaTag name="movementNumber"></metaTag> | ||
<metaTag name="movementTitle"></metaTag> | ||
<metaTag name="poet"></metaTag> | ||
<metaTag name="source"></metaTag> | ||
<metaTag name="translator"></metaTag> | ||
<metaTag name="workNumber"></metaTag> | ||
<metaTag name="workTitle"></metaTag> | ||
<Part> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
<small>1</small> | ||
</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>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> | ||
<program value="0"/> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<Measure> | ||
<voice> | ||
<TimeSig> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Spanner type="Pedal"> | ||
<Pedal> | ||
<endHookType>1</endHookType> | ||
<beginHookType>1</beginHookType> | ||
<Segment> | ||
<subtype>0</subtype> | ||
<offset x="0" y="2.8"/> | ||
<off2 x="-10.5" y="0"/> | ||
</Segment> | ||
</Pedal> | ||
<next> | ||
<location> | ||
<fractions>1/1</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Spanner type="Slur"> | ||
<Slur> | ||
<SlurSegment no="0"> | ||
<o2 x="0" y="-2.8"/> | ||
<o3 x="0" y="-2.8"/> | ||
</SlurSegment> | ||
</Slur> | ||
<next> | ||
<location> | ||
<fractions>3/4</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Note> | ||
<pitch>72</pitch> | ||
<tpc>14</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>74</pitch> | ||
<tpc>16</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>76</pitch> | ||
<tpc>18</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Spanner type="Slur"> | ||
<prev> | ||
<location> | ||
<fractions>-3/4</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
<Note> | ||
<pitch>77</pitch> | ||
<tpc>13</tpc> | ||
</Note> | ||
</Chord> | ||
<Spanner type="Pedal"> | ||
<prev> | ||
<location> | ||
<fractions>-1/1</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
</Score> | ||
</museScore> |
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,172 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="3.01"> | ||
<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> | ||
<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="lyricist"></metaTag> | ||
<metaTag name="movementNumber"></metaTag> | ||
<metaTag name="movementTitle"></metaTag> | ||
<metaTag name="poet"></metaTag> | ||
<metaTag name="source"></metaTag> | ||
<metaTag name="translator"></metaTag> | ||
<metaTag name="workNumber"></metaTag> | ||
<metaTag name="workTitle"></metaTag> | ||
<Part> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
<small>1</small> | ||
</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>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> | ||
<program value="0"/> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<Measure> | ||
<voice> | ||
<TimeSig> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Spanner type="Pedal"> | ||
<Pedal> | ||
<endHookType>1</endHookType> | ||
<beginHookType>1</beginHookType> | ||
<Segment> | ||
<subtype>0</subtype> | ||
<offset x="0" y="2.8"/> | ||
<off2 x="-10.5" y="0"/> | ||
</Segment> | ||
</Pedal> | ||
<next> | ||
<location> | ||
<fractions>1/1</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Spanner type="Slur"> | ||
<Slur> | ||
<SlurSegment no="0"> | ||
<o2 x="0" y="-2.8"/> | ||
<o3 x="0" y="-2.8"/> | ||
</SlurSegment> | ||
</Slur> | ||
<next> | ||
<location> | ||
<fractions>3/4</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Note> | ||
<pitch>72</pitch> | ||
<tpc>14</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>74</pitch> | ||
<tpc>16</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>76</pitch> | ||
<tpc>18</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Spanner type="Slur"> | ||
<prev> | ||
<location> | ||
<fractions>-3/4</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
<Note> | ||
<pitch>77</pitch> | ||
<tpc>13</tpc> | ||
</Note> | ||
</Chord> | ||
<Spanner type="Pedal"> | ||
<prev> | ||
<location> | ||
<fractions>-1/1</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
</Score> | ||
</museScore> |
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
Oops, something went wrong.