marktools.is_component_with_annotation_attached

abjad.tools.marktools.is_component_with_annotation_attached.is_component_with_annotation_attached(expr, annotation_name=None, annotation_value=None)[source]

New in version 2.3.

True when expr is component with annotation attached:

abjad> note = Note("c'4")
abjad> marktools.Annotation('foo', 'bar')(note)
Annotation('foo', 'bar')(c'4)
abjad> marktools.is_component_with_annotation_attached(note)
True

False otherwise:

abjad> note = Note("c'4")
abjad> marktools.is_component_with_annotation_attached(note)
False

Return boolean.

This Page