Fuse parent-contiguous tuplets:
abjad> t1 = tuplettools.FixedDurationTuplet(Duration(2, 8), "c'8 d'8 e'8")
abjad> spannertools.BeamSpanner(t1[:])
BeamSpanner(c'8, d'8, e'8)
abjad> t2 = tuplettools.FixedDurationTuplet(Duration(2, 16), "c'16 d'16 e'16")
abjad> spannertools.SlurSpanner(t2[:])
SlurSpanner(c'16, d'16, e'16)
abjad> staff = Staff([t1, t2])
abjad> f(staff)
\new Staff {
\times 2/3 {
c'8 [
d'8
e'8 ]
}
\times 2/3 {
c'16 (
d'16
e'16 )
}
}
abjad> tuplettools.fuse_tuplets(staff[:])
FixedDurationTuplet(3/8, [c'8, d'8, e'8, c'16, d'16, e'16])
abjad> f(staff)
\new Staff {
\times 2/3 {
c'8 [
d'8
e'8 ]
c'16 (
d'16
e'16 )
}
}
Return new tuplet.
Fuse zero or more parent-contiguous tuplets.
Allow in-score tuplets.
Allow outside-of-score tuplets.
All tuplets must carry the same multiplier.
All tuplets must be of the same type.
Changed in version 2.0: renamed fuse.tuplets_by_reference() to tuplettools.fuse_tuplets().