annotate¶
-
abjad.top.annotate.
annotate
(component, annotation, indicator)¶ Annotates
component
withindicator
.Annotates first note in staff:
>>> staff = abjad.Staff("c'4 d' e' f'") >>> abjad.annotate(staff[0], 'bow_direction', abjad.Down) >>> abjad.show(staff)
>>> abjad.inspect(staff[0]).annotation('bow_direction') Down
>>> abjad.inspect(staff[0]).annotation('bow_fraction') is None True
>>> abjad.inspect(staff[0]).annotation('bow_fraction', 99) 99
Returns none.