componenttools.all_are_contiguous_components_in_same_thread

abjad.tools.componenttools.all_are_contiguous_components_in_same_thread.all_are_contiguous_components_in_same_thread(expr, klasses=None, allow_orphans=True)[source]

New in version 1.1.

True when elements in expr are all contiguous components in same thread. Otherwise false:

abjad> staff = Staff("c'8 d'8 e'8")
abjad> componenttools.all_are_contiguous_components_in_same_thread(staff.leaves)
True

True when elements in expr are all contiguous klasses in same thread. Otherwise false:

abjad> staff = Staff("c'8 d'8 e'8")
abjad> componenttools.all_are_contiguous_components_in_same_thread(staff.leaves, klasses = Note)
True

Return boolean.

This Page