componenttools.extend_left_in_parent_of_component_and_do_not_grow_spanners

abjad.tools.componenttools.extend_left_in_parent_of_component_and_do_not_grow_spanners.extend_left_in_parent_of_component_and_do_not_grow_spanners(component, components)[source]

New in version 1.1.

Extend components left in parent of component and do not grow spanners:

abjad> notes = [Note("c'8"), Note("d'8"), Note("e'8")]
abjad> t = Voice(notes)
abjad> spannertools.BeamSpanner(t[:])
BeamSpanner(c'8, d'8, e'8)
abjad> notes = [Note("c'8"), Note("d'8"), Note("e'8")]
abjad> componenttools.extend_left_in_parent_of_component_and_do_not_grow_spanners(t[0], notes)
[Note("c'8"), Note("d'8"), Note("e'8"), Note("c'8")]
abjad> print t.format
\new Voice {
    c'8
    d'8
    e'8
    c'8 [
    d'8
    e'8 ]
}

Return components and component together in newly created list.

Changed in version 2.0: renamed extend_left_in_parent() to extend_left_in_parent_of_component_and_do_not_grow_spanners().

This Page