use of com.xenoage.zong.core.music.direction.Pedal.Type in project Zong by Xenoage.
the class DirectionReader method readPedal.
@MaybeNull
private Pedal readPedal() {
MxlPedal mxlPedal = (MxlPedal) currentMxlDirType;
Pedal.Type type = null;
switch(mxlPedal.getType()) {
case Start:
type = Type.Start;
break;
case Stop:
type = Type.Stop;
break;
default:
return null;
}
Pedal pedal = new Pedal(type);
pedal.setPositioning(readPositioning());
return pedal;
}