parenttools.get_first — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# parenttools.get_first

`abjad.tools.parenttools.` `get_first`(component, klass)

  New in version 1.1.1.

  Return first instance of klass in parentage of component.

      abjad> staff = Staff(construct.scale(4))
      abjad> parenttools.get_first(staff[0], Staff)
      Staff{4}

  Otherwise return `None`.

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »