marktools.is_component_with_lilypond_comment_attached

abjad.tools.marktools.is_component_with_lilypond_comment_attached.is_component_with_lilypond_comment_attached(expr, comment_contents_string=None)[source]

New in version 2.3.

True when expr is component with LilyPond comment mark attached:

abjad> note = Note("c'4")
abjad> marktools.LilyPondComment('comment here')(note)
LilyPondComment('comment here')(c'4)
abjad> marktools.is_component_with_lilypond_comment_attached(note)
True

False otherwise:

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

Return boolean.

This Page