Search in sources :

Example 11 with StavesList

use of com.xenoage.zong.core.music.StavesList 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 12 with StavesList

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

the class Test41a 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());
        int firstStaffIndex = stavesList.getPartStaffIndices(parts.get(i)).getStart();
        assertEquals(expectedPitches[i], getFirstPitch(score, firstStaffIndex));
    }
}
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 13 with StavesList

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

the class Test41f 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)

Aggregations

StavesList (com.xenoage.zong.core.music.StavesList)13 Score (com.xenoage.zong.core.Score)9 Test (org.junit.Test)9 Part (com.xenoage.zong.core.music.Part)4 StavesListTest (musicxmltestsuite.tests.utils.StavesListTest)4 StavesRange (com.xenoage.zong.core.music.group.StavesRange)2 ErrorHandling (com.xenoage.zong.io.musicxml.in.util.ErrorHandling)2 InvalidFormatException (com.xenoage.utils.exceptions.InvalidFormatException)1 LayoutFormat (com.xenoage.zong.core.format.LayoutFormat)1 ScoreFormat (com.xenoage.zong.core.format.ScoreFormat)1 ScoreHeader (com.xenoage.zong.core.header.ScoreHeader)1 ScoreInfo (com.xenoage.zong.core.info.ScoreInfo)1 Staff (com.xenoage.zong.core.music.Staff)1 BracketGroup (com.xenoage.zong.core.music.group.BracketGroup)1 Tuplet (com.xenoage.zong.core.music.tuplet.Tuplet)1 FormattedTextElement (com.xenoage.zong.core.text.FormattedTextElement)1 FormattedTextString (com.xenoage.zong.core.text.FormattedTextString)1 FormattedTextStyle (com.xenoage.zong.core.text.FormattedTextStyle)1 LayoutFormatReader (com.xenoage.zong.io.musicxml.in.readers.LayoutFormatReader)1 ScoreFormatReader (com.xenoage.zong.io.musicxml.in.readers.ScoreFormatReader)1