Search in sources :

Example 1 with Duration

use of com.xenoage.zong.core.music.util.Duration in project Zong by Xenoage.

the class RestNotator method compute.

public RestNotation compute(Rest rest, Context context) {
    float width = context.settings.spacings.normalChordSpacings.getWidth(rest.getDuration());
    Duration.Type duration = Duration.INSTANCE.getRestType(rest.getDuration());
    return new RestNotation(rest, new ElementWidth(width), duration);
}
Also used : ElementWidth(com.xenoage.zong.musiclayout.spacing.ElementWidth) RestNotation(com.xenoage.zong.musiclayout.notation.RestNotation) Duration(com.xenoage.zong.core.music.util.Duration)

Aggregations

Duration (com.xenoage.zong.core.music.util.Duration)1 RestNotation (com.xenoage.zong.musiclayout.notation.RestNotation)1 ElementWidth (com.xenoage.zong.musiclayout.spacing.ElementWidth)1