Search in sources :

Example 51 with Score

use of com.xenoage.zong.core.Score in project Zong by Xenoage.

the class Test41b method test.

@Test
public void test() {
    Score score = getScore();
    StavesList stavesList = score.getStavesList();
    List<Part> parts = stavesList.getParts();
    assertEquals(expectedNames.length, parts.size());
    for (int i : range(parts)) {
        assertEquals(expectedNames[i], parts.get(i).getName());
    }
}
Also used : Score(com.xenoage.zong.core.Score) Part(com.xenoage.zong.core.music.Part) StavesList(com.xenoage.zong.core.music.StavesList) Test(org.junit.Test)

Example 52 with Score

use of com.xenoage.zong.core.Score in project Zong by Xenoage.

the class Test41c method test.

@Test
public void test() {
    Score score = getScore();
    StavesList stavesList = score.getStavesList();
    StavesListTest.checkPartNames(stavesList, expectedPartNames);
    StavesListTest.checkBracketGroups(stavesList, expectedBracketGroups);
    StavesListTest.checkBarlineGroups(stavesList, expectedBarlineGroups);
}
Also used : Score(com.xenoage.zong.core.Score) StavesList(com.xenoage.zong.core.music.StavesList) Test(org.junit.Test) StavesListTest(musicxmltestsuite.tests.utils.StavesListTest)

Example 53 with Score

use of com.xenoage.zong.core.Score in project Zong by Xenoage.

the class Test41d method test.

@Test
public void test() {
    Score score = getScore();
    StavesList stavesList = score.getStavesList();
    StavesListTest.checkBracketGroups(stavesList, expectedBracketGroups);
    StavesListTest.checkBarlineGroups(stavesList, expectedBarlineGroups);
}
Also used : Score(com.xenoage.zong.core.Score) StavesList(com.xenoage.zong.core.music.StavesList) Test(org.junit.Test) StavesListTest(musicxmltestsuite.tests.utils.StavesListTest)

Example 54 with Score

use of com.xenoage.zong.core.Score in project Zong by Xenoage.

the class Test41e method test.

@Test
public void test() {
    Score score = getScore();
    StavesList stavesList = score.getStavesList();
    StavesListTest.checkPartNames(stavesList, expectedPartNames);
    StavesListTest.checkPartAbbreviations(stavesList, expectedPartAbbreviations);
}
Also used : Score(com.xenoage.zong.core.Score) StavesList(com.xenoage.zong.core.music.StavesList) Test(org.junit.Test) StavesListTest(musicxmltestsuite.tests.utils.StavesListTest)

Example 55 with Score

use of com.xenoage.zong.core.Score in project Zong by Xenoage.

the class Test45a method test.

@Test
public void test() {
    Score score = getScore();
    assertEqualsEndBarlines(expectedEndBarlines, score);
}
Also used : Score(com.xenoage.zong.core.Score) Test(org.junit.Test)

Aggregations

Score (com.xenoage.zong.core.Score)99 Test (org.junit.Test)62 Rest (com.xenoage.zong.core.music.rest.Rest)22 MP (com.xenoage.zong.core.position.MP)19 Voice (com.xenoage.zong.core.music.Voice)15 Cursor (com.xenoage.zong.io.selection.Cursor)15 TimeSignature (com.xenoage.zong.core.music.time.TimeSignature)14 Chord (com.xenoage.zong.core.music.chord.Chord)11 StavesList (com.xenoage.zong.core.music.StavesList)9 MusicXmlScoreFileInputTest (com.xenoage.zong.io.musicxml.in.MusicXmlScoreFileInputTest)9 Part (com.xenoage.zong.core.music.Part)8 ColumnHeader (com.xenoage.zong.core.header.ColumnHeader)7 lombok.val (lombok.val)7 TraditionalKey (com.xenoage.zong.core.music.key.TraditionalKey)6 Direction (com.xenoage.zong.core.music.direction.Direction)5 Dynamic (com.xenoage.zong.core.music.direction.Dynamic)5 Size2f (com.xenoage.utils.math.geom.Size2f)4 PartAdd (com.xenoage.zong.commands.core.music.PartAdd)4 ScoreFormat (com.xenoage.zong.core.format.ScoreFormat)4 ScoreHeader (com.xenoage.zong.core.header.ScoreHeader)4