use of com.xenoage.zong.core.music.annotation.Articulation in project Zong by Xenoage.
the class Utils method articulation.
public static Articulation articulation(ArticulationType type, Placement placement) {
Articulation ret = new Articulation(type);
ret.setPlacement(placement);
return ret;
}
use of com.xenoage.zong.core.music.annotation.Articulation in project Zong by Xenoage.
the class ArticulationReader method readArticulation.
private static Articulation readArticulation(MxlArticulationsContent mxlAC) {
MxlArticulationsContentType mxlACType = mxlAC.getArticulationsContentType();
ArticulationType type = Equivalents.articulations.getBy2(mxlACType);
if (type == null)
return null;
Articulation articulation = new Articulation(type);
// read placement
MxlPlacement mxlPlacement = mxlAC.getEmptyPlacement().getPlacement();
articulation.setPlacement(PositioningReader.readPlacement(mxlPlacement));
return articulation;
}
Aggregations