componenttools.extend_left_in_parent_of_component_and_grow_spanners

abjad.tools.componenttools.extend_left_in_parent_of_component_and_grow_spanners.extend_left_in_parent_of_component_and_grow_spanners(component, new_components)[source]

New in version 2.0.

Extend new_components left in parent of component and grow spanners:

abjad> voice = Voice("c'8 d'8 e'8")
abjad> spannertools.BeamSpanner(voice[:])
BeamSpanner(c'8, d'8, e'8)
abjad> f(voice)
\new Voice {
    c'8 [
    d'8
    e'8 ]
}
abjad> new_components = 3 * Note(0, (1, 16))
abjad> componenttools.extend_left_in_parent_of_component_and_grow_spanners(voice[0], new_components)
[Note("c'16"), Note("c'16"), Note("c'16"), Note("c'8")]
abjad> f(voice)
\new Voice {
    c'16 [
    c'16
    c'16
    c'8
    d'8
    e'8 ]
}

Return new_components and component together in newly created list.

Changed in version 2.0: renamed splice_left() to componenttools.extend_left_in_parent_of_component_and_grow_spanners().

This Page