leaftools.split_leaf_at_prolated_duration_and_rest_right_half

abjad.tools.leaftools.split_leaf_at_prolated_duration_and_rest_right_half.split_leaf_at_prolated_duration_and_rest_right_half(leaf, prolated_duration)[source]

New in version 1.1.

Split leaf at prolated_duration and rest right half:

abjad> t = Staff("c'8 d'8 e'8 f'8")
abjad> spannertools.SlurSpanner(t[:])
SlurSpanner(c'8, d'8, e'8, f'8)
abjad> f(t)
\new Staff {
    c'8 (
    d'8
    e'8
    f'8 )
}
abjad> leaftools.split_leaf_at_prolated_duration_and_rest_right_half(t.leaves[1], (1, 32))
([Note("d'32")], [Note("d'16.")])
abjad> f(t)
\new Staff {
    c'8 (
    d'32
    r16.
    e'8
    f'8 )
}

Return list of leaves to left of prolated_duration together with list of leaves to right of prolated_duration.

Changed in version 2.0: renamed leaftools.shorten() to leaftools.split_leaf_at_prolated_duration_and_rest_right_half().

This Page