New in version 2.0.
Abjad model of a dynamic mark:
abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> contexttools.DynamicMark('f')(staff[0])
DynamicMark('f')(c'8)
abjad> f(staff)
\new Staff {
c'8 \f
d'8
e'8
f'8
}
Dynamic marks target the staff context by default.
Read-only reference to effective context of context mark:
abjad> note = Note("c'4")
abjad> context_mark = contexttools.ContextMark()(note)
abjad> context_mark.effective_context is None
True
Return context mark or none.
Note
Inherited from contexttools.ContextMark
Read-only LilyPond input format of dynamic mark:
abjad> dynamic_mark = contexttools.DynamicMark('f')
abjad> dynamic_mark.format
'\f'
Return string.
Read-only reference to mark start component:
abjad> note = Note("c'4")
abjad> mark = marktools.Mark()(note)
abjad> mark.start_component
Note("c'4")
Return component or none.
Note
Inherited from marktools.Mark
Read-only reference to target context of context mark:
abjad> note = Note("c'4")
abjad> context_mark = contexttools.ContextMark()(note)
abjad> context_mark.target_context is None
True
Return context mark or none.
Note
Inherited from contexttools.ContextMark
Make sure no context mark of same type is already attached to start component.
Note
Inherited from contexttools.ContextMark
Detach mark:
abjad> note = Note("c'4")
abjad> context_mark = contexttools.ContextMark()(note)
abjad> context_mark.start_component
Note("c'4")
abjad> context_mark.detach()
ContextMark()
abjad> context_mark.start_component is None
True
Return context mark.
Note
Inherited from contexttools.ContextMark
Note
Inherited from marktools.Mark
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception
Note
Inherited from abctools.AbjadObject
Note
Inherited from __builtin__.object
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Note
Inherited from marktools.Mark
Note
Inherited from marktools.Mark
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
Note
Inherited from __builtin__.object