containertools.delete_contents_of_container_starting_strictly_before_prolated_offset

abjad.tools.containertools.delete_contents_of_container_starting_strictly_before_prolated_offset.delete_contents_of_container_starting_strictly_before_prolated_offset(container, prolated_offset)[source]

New in version 2.0.

Delete contents of container contents starting strictly before prolated_offset:

abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> spannertools.BeamSpanner(staff.leaves)
BeamSpanner(c'8, d'8, e'8, f'8)
abjad> f(staff)
\new Staff {
    c'8 [
    d'8
    e'8
    f'8 ]
}
abjad> containertools.delete_contents_of_container_starting_strictly_before_prolated_offset(staff, Duration(1, 8))
Staff{3}
abjad> f(staff)
\new Staff {
    d'8 [
    e'8
    f'8 ]
}

Return container.

Changed in version 2.0: renamed containertools.contents_delete_starting_before_prolated_offset() to containertools.delete_contents_of_container_starting_strictly_before_prolated_offset().

This Page