Split container at index and fracture crossing spanners:
abjad> voice = Voice(tuplettools.FixedDurationTuplet(Duration(2, 8), "c'8 c'8 c'8") * 2)
abjad> tuplet = voice[1]
abjad> pitchtools.set_ascending_named_diatonic_pitches_on_nontied_pitched_components_in_expr(voice)
abjad> beam = spannertools.BeamSpanner(voice[:])
abjad> f(voice)
\new Voice {
\times 2/3 {
c'8 [
d'8
e'8
}
\times 2/3 {
f'8
g'8
a'8 ]
}
}
abjad> left, right = containertools.split_container_at_index_and_fracture_crossing_spanners(tuplet, 1)
abjad> f(voice)
\new Voice {
\times 2/3 {
c'8 [
d'8
e'8
}
\times 2/3 {
f'8 ]
}
\times 2/3 {
g'8 [
a'8 ]
}
}
Leave leaves untouched.
Create two new copies of container.
Empty container of original contents.
Return split parts.
Changed in version 2.0: renamed split.fractured_at_index() to containertools.split_container_at_index_and_fracture_crossing_spanners().