contexttools.is_component_with_time_signature_mark_attached

abjad.tools.contexttools.is_component_with_time_signature_mark_attached.is_component_with_time_signature_mark_attached(expr)[source]

New in version 2.0.

True when expr is a component with time signature mark attached:

abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> contexttools.TimeSignatureMark((4, 8))(staff[0])
TimeSignatureMark((4, 8))(c'8)
abjad> f(staff)
\new Staff {
    \time 4/8
    c'8
    d'8
    e'8
    f'8
}
abjad> contexttools.is_component_with_time_signature_mark_attached(staff[0])
True

Otherwise false:

abjad> contexttools.is_component_with_time_signature_mark_attached(staff)
False

Return boolean.

This Page