Group leaves in tie_chain by immediate parent:
abjad> staff = Staff(Measure((2, 8), notetools.make_repeated_notes(2)) * 2)
abjad> tietools.TieSpanner(staff.leaves)
TieSpanner(c'8, c'8, c'8, c'8)
abjad> f(staff)
\new Staff {
{
\time 2/8
c'8 ~
c'8 ~
}
{
\time 2/8
c'8 ~
c'8
}
}
abjad> tie_chain = tietools.get_tie_chain(staff.leaves[0])
abjad> tietools.group_leaves_in_tie_chain_by_immediate_parents(tie_chain)
[[Note("c'8"), Note("c'8")], [Note("c'8"), Note("c'8")]]
Return list of leaf group lists.
Changed in version 2.0: renamed tietools.group_by_parent() to tietools.group_leaves_in_tie_chain_by_immediate_parents().