Search in sources :

Example 1 with Articulation

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;
}
Also used : Articulation(com.xenoage.zong.core.music.annotation.Articulation)

Example 2 with Articulation

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;
}
Also used : MxlArticulationsContentType(com.xenoage.zong.musicxml.types.choice.MxlArticulationsContent.MxlArticulationsContentType) Articulation(com.xenoage.zong.core.music.annotation.Articulation) MxlPlacement(com.xenoage.zong.musicxml.types.enums.MxlPlacement) ArticulationType(com.xenoage.zong.core.music.annotation.ArticulationType)

Aggregations

Articulation (com.xenoage.zong.core.music.annotation.Articulation)2 ArticulationType (com.xenoage.zong.core.music.annotation.ArticulationType)1 MxlArticulationsContentType (com.xenoage.zong.musicxml.types.choice.MxlArticulationsContent.MxlArticulationsContentType)1 MxlPlacement (com.xenoage.zong.musicxml.types.enums.MxlPlacement)1