use of com.xenoage.zong.musicxml.types.enums.MxlStartStopDiscontinue in project Zong by Xenoage.
the class VoltaReader method readToContext.
public void readToContext(Context context) {
MxlStartStopDiscontinue type = mxlEnding.getType();
if (type == MxlStartStopDiscontinue.Start) {
Range range = readEndingRange(mxlEnding.getNumber());
context.openVolta(range, null);
} else if (type == MxlStartStopDiscontinue.Stop || type == MxlStartStopDiscontinue.Discontinue) {
boolean rightHook = (type == MxlStartStopDiscontinue.Stop);
ClosedVolta closedVolta = context.closeVolta(rightHook);
if (closedVolta != null)
context.writeColumnElement(closedVolta.volta, closedVolta.measure);
}
}
use of com.xenoage.zong.musicxml.types.enums.MxlStartStopDiscontinue in project Zong by Xenoage.
the class MxlEnding method read.
@NonNull
public static MxlEnding read(XmlReader reader) {
String number = reader.getAttributeNotNull("number");
MxlStartStopDiscontinue type = MxlStartStopDiscontinue.read(reader.getAttributeNotNull("type"));
return new MxlEnding(number, type);
}
Aggregations