leaftools.label_leaves_in_expr_with_pitch_numbers

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

New in version 1.1.

Label leaves in expr with pitch numbers:

abjad> staff = Staff(leaftools.make_leaves([None, 12, [13, 14, 15], None], [(1, 4)]))
abjad> leaftools.label_leaves_in_expr_with_pitch_numbers(staff)
abjad> f(staff)
\new Staff {
    r4
    c''4 _ \markup { \small 12 }
    <cs'' d'' ef''>4 _ \markup { \column { \small 15 \small 14 \small 13 } }
    r4
}

Return none.

Changed in version 2.0: renamed label.leaf_pitch_numbers() to leaftools.label_leaves_in_expr_with_pitch_numbers().

This Page