New in version 2.0.
LilyPond command mark:
abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> slur = spannertools.SlurSpanner(staff.leaves)
abjad> lilypond_command = marktools.LilyPondCommandMark('slurDotted')(staff[0])
abjad> f(staff)
\new Staff {
\slurDotted
c'8 (
d'8
e'8
f'8 )
}
Initialize LilyPond command marks from command name; or from command name with format slot; or from another LilyPond command mark; or from another LilyPond command mark with format slot.
LilyPond command marks implement __slots__.
Read-only LilyPond input format of LilyPond command mark:
abjad> note = Note("c'4")
abjad> lilypond_command = marktools.LilyPondCommandMark('slurDotted')(note)
abjad> lilypond_command.format
'\slurDotted'
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
Get command name of LilyPond command mark:
abjad> lilypond_command = marktools.LilyPondCommandMark('slurDotted')
abjad> lilypond_command.command_name
'slurDotted'
Set command name of LilyPond command mark:
abjad> lilypond_command.command_name = 'slurDashed'
abjad> lilypond_command.command_name
'slurDashed'
Set string.
New in version 2.3.
Get format slot of LilyPond command mark:
abjad> note = Note("c'4")
abjad> lilypond_command = marktools.LilyPondCommandMark('break', 'after')
abjad> lilypond_command.format_slot
'after'
Set format slot of LiyPond command mark:
abjad> note = Note("c'4")
abjad> lilypond_command = marktools.LilyPondCommandMark('break', 'after')
abjad> lilypond_command.format_slot = 'before'
abjad> lilypond_command.format_slot
'before'
Set to 'before', 'after', 'opening', 'closing', 'right' or none.
Attach mark to start_component:
abjad> note = Note("c'4")
abjad> mark = marktools.Mark()
abjad> mark.attach(note)
Mark()(c'4)
abjad> mark.start_component
Note("c'4")
Return mark.
Note
Inherited from marktools.Mark
Detach mark:
abjad> note = Note("c'4")
abjad> mark = marktools.Mark()(note)
abjad> mark.start_component
Note("c'4")
abjad> mark.detach()
Mark()
abjad> mark.start_component is None
True
Return mark.
Note
Inherited from marktools.Mark
Note
Inherited from marktools.Mark
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