voicetools.get_first_voice_in_proper_parentage_of_component

abjad.tools.voicetools.get_first_voice_in_proper_parentage_of_component.get_first_voice_in_proper_parentage_of_component(component)[source]

New in version 2.0.

Get first voice in proper parentage of component:

abjad> voice = Voice("c'8 d'8 e'8 f'8")
abjad> staff = Staff([voice])
abjad> f(staff)
\new Staff {
    \new Voice {
        c'8
        d'8
        e'8
        f'8
    }
}
abjad> voicetools.get_first_voice_in_proper_parentage_of_component(staff.leaves[0])
Voice{4}

Return voice or none.

This Page