-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added unit test and actualised existing
- Loading branch information
Showing
14 changed files
with
1,092 additions
and
125 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,191 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<museScore version="3.01"> | ||
<Score> | ||
<Division>480</Division> | ||
<Style> | ||
<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="source"></metaTag> | ||
<metaTag name="translator"></metaTag> | ||
<metaTag name="workNumber"></metaTag> | ||
<metaTag name="workTitle">Test</metaTag> | ||
<Part> | ||
<Staff id="1"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
</Staff> | ||
<trackName>Voice</trackName> | ||
<Instrument> | ||
<trackName>Voice</trackName> | ||
<minPitchP>36</minPitchP> | ||
<maxPitchP>94</maxPitchP> | ||
<minPitchA>40</minPitchA> | ||
<maxPitchA>79</maxPitchA> | ||
<Articulation> | ||
<velocity>100</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Articulation name="staccato"> | ||
<velocity>100</velocity> | ||
<gateTime>85</gateTime> | ||
</Articulation> | ||
<Articulation name="tenuto"> | ||
<velocity>100</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Articulation name="sforzato"> | ||
<velocity>120</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Part> | ||
<Staff id="2"> | ||
<StaffType group="pitched"> | ||
<name>stdNormal</name> | ||
</StaffType> | ||
</Staff> | ||
<trackName>Voice</trackName> | ||
<Instrument> | ||
<longName>Voice</longName> | ||
<shortName>Vo.</shortName> | ||
<trackName>Voice</trackName> | ||
<minPitchP>36</minPitchP> | ||
<maxPitchP>94</maxPitchP> | ||
<minPitchA>40</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>120</velocity> | ||
<gateTime>100</gateTime> | ||
</Articulation> | ||
<Channel> | ||
<program value="52"/> | ||
</Channel> | ||
</Instrument> | ||
</Part> | ||
<Staff id="1"> | ||
<VBox> | ||
<height>10</height> | ||
<Text> | ||
<style>title</style> | ||
<text>Test</text> | ||
</Text> | ||
<Text> | ||
<style>subtitle</style> | ||
<text>Split Measure+Slur</text> | ||
</Text> | ||
</VBox> | ||
<Measure> | ||
<voice> | ||
<TimeSig> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Tempo> | ||
<tempo>1.66667</tempo> | ||
<text>𝅘𝅥 = 100</text> | ||
</Tempo> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Spanner type="Slur"> | ||
<Slur> | ||
</Slur> | ||
<next> | ||
<location> | ||
<fractions>3/4</fractions> | ||
</location> | ||
</next> | ||
</Spanner> | ||
<Note> | ||
<pitch>60</pitch> | ||
<tpc>14</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>62</pitch> | ||
<tpc>16</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Note> | ||
<pitch>64</pitch> | ||
<tpc>18</tpc> | ||
</Note> | ||
</Chord> | ||
<Chord> | ||
<durationType>quarter</durationType> | ||
<Spanner type="Slur"> | ||
<prev> | ||
<location> | ||
<fractions>-3/4</fractions> | ||
</location> | ||
</prev> | ||
</Spanner> | ||
<Note> | ||
<pitch>65</pitch> | ||
<tpc>13</tpc> | ||
</Note> | ||
</Chord> | ||
<BarLine> | ||
<subtype>end</subtype> | ||
</BarLine> | ||
</voice> | ||
</Measure> | ||
</Staff> | ||
<Staff id="2"> | ||
<Measure> | ||
<voice> | ||
<TimeSig> | ||
<sigN>4</sigN> | ||
<sigD>4</sigD> | ||
</TimeSig> | ||
<Rest> | ||
<durationType>measure</durationType> | ||
<duration>4/4</duration> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* SPDX-License-Identifier: GPL-3.0-only | ||
* MuseScore-CLA-applies | ||
* | ||
* MuseScore | ||
* Music Composition & Notation | ||
* | ||
* Copyright (C) 2024 MuseScore BVBA and others | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 3 as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "testing/environment.h" | ||
|
||
#include "fonts/fontsmodule.h" | ||
#include "draw/drawmodule.h" | ||
#include "engraving/engravingmodule.h" | ||
#include "engraving/tests/utils/scorerw.h" | ||
|
||
#include "engraving/dom/instrtemplate.h" | ||
#include "engraving/dom/mscore.h" | ||
|
||
static mu::testing::SuiteEnvironment importexport_se( | ||
{ | ||
new mu::draw::DrawModule(), | ||
new mu::fonts::FontsModule(), // needs for engraving | ||
new mu::engraving::EngravingModule() | ||
}, | ||
nullptr, | ||
[]() { | ||
LOGI() << "notation tests suite post init"; | ||
|
||
mu::engraving::ScoreRW::setRootPath(mu::String::fromUtf8(notation_tests_DATA_ROOT)); | ||
|
||
mu::engraving::MScore::testMode = true; | ||
mu::engraving::MScore::testWriteStyleToScore = false; | ||
mu::engraving::MScore::noGui = true; | ||
|
||
mu::engraving::loadInstrumentTemplates(":/data/instruments.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
Oops, something went wrong.