use of com.xenoage.zong.io.musicxml.in.util.ClosedVolta 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);
}
}
Aggregations