inspect

topleveltools.inspect_(client)

Makes inspection agent.

Example staff:

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

Gets duration of first note in staff:

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

Gets lineage of first note in staff:

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

Returns inspection agent:

>>> inspect_(staff)
InspectionAgent(client=Staff("c'4 e'4 d'4 f'4"))