forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gp-import: expanding spanner when it ends on uncompleted measure
- Loading branch information
1 parent
174b7f7
commit 6f0c6e9
Showing
8 changed files
with
341 additions
and
0 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
Binary file added
BIN
+8.5 KB
src/importexport/guitarpro/tests/data/spanner-in-uncomplete-measure.gp
Binary file not shown.
167 changes: 167 additions & 0 deletions
167
src/importexport/guitarpro/tests/data/spanner-in-uncomplete-measure.gp-ref.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,167 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="4.10"> | ||
<Score> | ||
<Division>480</Division> | ||
<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 id="1"> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
</Staff> | ||
<trackName>Electric Guitar</trackName> | ||
<Instrument id="electric-guitar"> | ||
<longName>Electric Guitar</longName> | ||
<shortName>jz.guit.</shortName> | ||
<trackName></trackName> | ||
<transposeDiatonic>-7</transposeDiatonic> | ||
<transposeChromatic>-12</transposeChromatic> | ||
<instrumentId>pluck.guitar.electric</instrumentId> | ||
<singleNoteDynamics>0</singleNoteDynamics> | ||
<StringData> | ||
<frets>24</frets> | ||
<string>52</string> | ||
<string>57</string> | ||
<string>62</string> | ||
<string>67</string> | ||
<string>71</string> | ||
<string>76</string> | ||
</StringData> | ||
<Articulation name="staccatissimo"> | ||
<velocity>100</velocity> | ||
<gateTime>30</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="accent"> | ||
<velocity>120</velocity> | ||
<gateTime>67</gateTime> | ||
</Articulation> | ||
<Articulation name="marcato"> | ||
<velocity>144</velocity> | ||
<gateTime>67</gateTime> | ||
</Articulation> | ||
<Articulation name="sforzato"> | ||
<velocity>169</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
<program value="26"/> | ||
<controller ctrl="7" value="101"/> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<Measure> | ||
<voice> | ||
<KeySig> | ||
<concertKey>0</concertKey> | ||
</KeySig> | ||
<TimeSig> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Dynamic> | ||
<subtype>mf</subtype> | ||
<velocity>80</velocity> | ||
</Dynamic> | ||
<Tempo> | ||
<tempo>2</tempo> | ||
<text><sym>metNoteQuarterUp</sym> = 120</text> | ||
</Tempo> | ||
<Spanner type="LetRing"> | ||
<LetRing> | ||
</LetRing> | ||
<next> | ||
<location> | ||
<measures>1</measures> | ||
<fractions>1/2</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>5</fret> | ||
<string>1</string> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>5</fret> | ||
<string>1</string> | ||
</Note> | ||
</Chord> | ||
<Rest> | ||
<durationType>half</durationType> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
<Measure> | ||
<voice> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>0</fret> | ||
<string>0</string> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>0</fret> | ||
<string>0</string> | ||
</Note> | ||
</Chord> | ||
<Spanner type="LetRing"> | ||
<prev> | ||
<location> | ||
<measures>-1</measures> | ||
<fractions>-1/2</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
<Rest> | ||
<durationType>half</durationType> | ||
</Rest> | ||
<BarLine> | ||
<subtype>end</subtype> | ||
</BarLine> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
</Score> | ||
</museScore> |
Binary file added
BIN
+1.48 KB
src/importexport/guitarpro/tests/data/spanner-in-uncomplete-measure.gp5
Binary file not shown.
163 changes: 163 additions & 0 deletions
163
src/importexport/guitarpro/tests/data/spanner-in-uncomplete-measure.gp5-ref.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,163 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="4.10"> | ||
<Score> | ||
<Division>480</Division> | ||
<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 id="1"> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
<defaultClef>G8vb</defaultClef> | ||
</Staff> | ||
<trackName>Electric Guitar</trackName> | ||
<Instrument id="electric-guitar"> | ||
<longName>Electric Guitar</longName> | ||
<trackName></trackName> | ||
<instrumentId>pluck.guitar.electric</instrumentId> | ||
<singleNoteDynamics>0</singleNoteDynamics> | ||
<StringData> | ||
<frets>30</frets> | ||
<string>40</string> | ||
<string>45</string> | ||
<string>50</string> | ||
<string>55</string> | ||
<string>59</string> | ||
<string>64</string> | ||
</StringData> | ||
<Articulation name="staccatissimo"> | ||
<velocity>100</velocity> | ||
<gateTime>30</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="accent"> | ||
<velocity>120</velocity> | ||
<gateTime>67</gateTime> | ||
</Articulation> | ||
<Articulation name="marcato"> | ||
<velocity>144</velocity> | ||
<gateTime>67</gateTime> | ||
</Articulation> | ||
<Articulation name="sforzato"> | ||
<velocity>169</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
<program value="26"/> | ||
<controller ctrl="7" value="119"/> | ||
<controller ctrl="10" value="63"/> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<Measure> | ||
<voice> | ||
<KeySig> | ||
<concertKey>0</concertKey> | ||
</KeySig> | ||
<TimeSig> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Dynamic> | ||
<subtype>mf</subtype> | ||
<velocity>80</velocity> | ||
</Dynamic> | ||
<Tempo> | ||
<tempo>2</tempo> | ||
<text><sym>metNoteQuarterUp</sym> = 120</text> | ||
</Tempo> | ||
<Spanner type="LetRing"> | ||
<LetRing> | ||
</LetRing> | ||
<next> | ||
<location> | ||
<measures>1</measures> | ||
<fractions>1/2</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>5</fret> | ||
<string>1</string> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>5</fret> | ||
<string>1</string> | ||
</Note> | ||
</Chord> | ||
<Rest> | ||
<durationType>half</durationType> | ||
</Rest> | ||
</voice> | ||
</Measure> | ||
<Measure> | ||
<voice> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>0</fret> | ||
<string>0</string> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
<fret>0</fret> | ||
<string>0</string> | ||
</Note> | ||
</Chord> | ||
<Spanner type="LetRing"> | ||
<prev> | ||
<location> | ||
<measures>-1</measures> | ||
<fractions>-1/2</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
<Rest> | ||
<durationType>half</durationType> | ||
</Rest> | ||
</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