inspect

topleveltools.inspect(client)

Makes inspection agent.

>>> import abjad

Example staff:

>>> staff = abjad.Staff("c'4 e'4 d'4 f'4")
>>> show(staff) 

Gets duration of first note in staff:

>>> abjad.inspect(staff[0]).get_duration()
Duration(1, 4)

Gets lineage of first note in staff:

>>> abjad.inspect(staff[0]).get_lineage()
Lineage([Staff("c'4 e'4 d'4 f'4"), Note("c'4")])

Returns inspection agent:

>>> abjad.inspect(staff)
InspectionAgent(client=Staff("c'4 e'4 d'4 f'4"))