Search in sources :

Example 91 with Score

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

the class Test43a method test.

@Test
public void test() {
    Score score = getScore();
    StavesList stavesList = score.getStavesList();
    assertEquals(1, stavesList.getParts().size());
    assertEquals(2, stavesList.getParts().get(0).getStavesCount());
    testStaff(0, ClefType.Companion.getClefTreble(), Companion.pi('F', 0, 4));
    testStaff(1, ClefType.Companion.getClefBass(), Companion.pi('B', 0, 2));
}
Also used : Score(com.xenoage.zong.core.Score) StavesList(com.xenoage.zong.core.music.StavesList) Test(org.junit.Test)

Example 92 with Score

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

the class Test45d method test.

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

Example 93 with Score

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

the class Test45e method test.

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

Example 94 with Score

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

the class Test45f method test.

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

Example 95 with Score

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

the class Test46a 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