Search in sources :

Example 1 with Type

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;
}
Also used : Type(com.xenoage.zong.core.music.direction.Pedal.Type) MaybeNull(com.xenoage.utils.annotations.MaybeNull)

Aggregations

MaybeNull (com.xenoage.utils.annotations.MaybeNull)1 Type (com.xenoage.zong.core.music.direction.Pedal.Type)1