scoretools.get_first_score_in_proper_parentage_of_component

abjad.tools.scoretools.get_first_score_in_proper_parentage_of_component.get_first_score_in_proper_parentage_of_component(component)[source]

New in version 2.0.

Get first score in proper parentage of component:

abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> score = Score([staff])
abjad> f(score)
\new Score <<
    \new Staff {
        c'8
        d'8
        e'8
        f'8
    }
>>
abjad> scoretools.get_first_score_in_proper_parentage_of_component(score.leaves[0])
Score<<1>>

Return score or none.

This Page