stafftools.get_first_staff_in_improper_parentage_of_component

abjad.tools.stafftools.get_first_staff_in_improper_parentage_of_component.get_first_staff_in_improper_parentage_of_component(component)[source]

New in version 2.0.

Get first staff in improper parentage of component:

abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> f(staff)
\new Staff {
    c'8
    d'8
    e'8
    f'8
}
abjad> stafftools.get_first_staff_in_improper_parentage_of_component(staff[1])
Staff{4}

Return staff or none.

This Page