leaftools.label_leaves_in_expr_with_leaf_durations

abjad.tools.leaftools.label_leaves_in_expr_with_leaf_durations.label_leaves_in_expr_with_leaf_durations(expr, markup_direction='down')[source]

New in version 1.1.

Label leaves in expr with leaf durations:

abjad> tuplet = tuplettools.FixedDurationTuplet(Duration(1, 4), "c'8 d'8 e'8")
abjad> leaftools.label_leaves_in_expr_with_leaf_durations(tuplet)
abjad> f(tuplet)
\times 2/3 {
    c'8 _ \markup { \column { \small 1/8 \small 1/12 } }
    d'8 _ \markup { \column { \small 1/8 \small 1/12 } }
    e'8 _ \markup { \column { \small 1/8 \small 1/12 } }
}

Label both written duration and prolated duration.

Return none.

This Page