return musicDiagram;
}
public static ScoreDef createScoreDef(int stavesCount) {
ScoreDef scoreDef = new ScoreDef();
StaffGrp staffGrp = new StaffGrp();
for (int i = 0; i < stavesCount; i++) {
StaffDef staffDef = new StaffDef();
staffDef.setN(String.valueOf(i));
if (i % 2 == 0)
staffDef.setClefShape(GraphicalConstants.DEFAULT_SYSTEM_CLEF);
else
staffDef.setClefShape(GraphicalConstants.ALTERNATE_SYSTEM_CLEF);
staffDef.setMeterCount(StringConstants.STRING_EMPTY + GraphicalConstants.DEFAULT_METER_COUNT);
staffDef.setMeterUnit(new BigDecimal(
GraphicalConstants.DEFAULT_METER_UNIT));
staffDef.setKeySigValue("0");
staffGrp.getInstrDevesAndGrpSymsAndStaffDeves().add(staffDef);
}
scoreDef.setStaffGrp(staffGrp);
return scoreDef;
}