annotate

topleveltools.annotate(component, name, indicator)

Annotates component with indicator.

>>> import abjad

Annotates first note in staff:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.annotate(staff[0], 'bow_direction', Down)
>>> show(staff) 
>>> abjad.inspect(staff[0]).get_annotation('bow_direction')
Down
>>> abjad.inspect(staff[0]).get_annotation('bow_fraction') is None
True
>>> abjad.inspect(staff[0]).get_annotation('bow_fraction', 99)
99

Returns none.