leaftools.label_leaves_in_expr_with_melodic_counterpoint_intervals

abjad.tools.leaftools.label_leaves_in_expr_with_melodic_counterpoint_intervals.label_leaves_in_expr_with_melodic_counterpoint_intervals(expr, markup_direction='up')[source]

New in version 2.0.

Label leaves in expr with melodic counterpoint intervals:

abjad> staff = Staff(notetools.make_notes([0, 25, 11, -4, -14, -13, 9, 10, 6, 5], [Duration(1, 8)]))
abjad> leaftools.label_leaves_in_expr_with_melodic_counterpoint_intervals(staff)
abjad> f(staff)
\new Staff {
    c'8 ^ \markup { +15 }
    cs'''8 ^ \markup { -9 }
    b'8 ^ \markup { -9 }
    af8 ^ \markup { -7 }
    bf,8 ^ \markup { 1 }
    b,8 ^ \markup { +14 }
    a'8 ^ \markup { +2 }
    bf'8 ^ \markup { -4 }
    fs'8 ^ \markup { 1 }
    f'8
}

Return none.

This Page