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));
}
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));
}
}
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);
}
Aggregations