marktools.LilyPondCommandMark

Inheritance diagram of abjad.tools.marktools.LilyPondCommandMark.LilyPondCommandMark.LilyPondCommandMark

class abjad.tools.marktools.LilyPondCommandMark.LilyPondCommandMark.LilyPondCommandMark(*args)[source]

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 Properties

LilyPondCommandMark.format[source]

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.

LilyPondCommandMark.start_component

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/write Properties

LilyPondCommandMark.command_name[source]

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.

LilyPondCommandMark.format_slot[source]

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.

Methods

LilyPondCommandMark.attach(start_component)

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

LilyPondCommandMark.detach()

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

Special Methods

LilyPondCommandMark.__call__(*args)

Note

Inherited from marktools.Mark

LilyPondCommandMark.__delattr__(*args)

Note

Inherited from marktools.Mark

LilyPondCommandMark.__eq__(arg)[source]
LilyPondCommandMark.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

LilyPondCommandMark.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

LilyPondCommandMark.__hash__() <==> hash(x)

Note

Inherited from __builtin__.object

LilyPondCommandMark.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

LilyPondCommandMark.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

LilyPondCommandMark.__ne__(arg)

Note

Inherited from marktools.Mark

LilyPondCommandMark.__repr__()

Note

Inherited from marktools.Mark

LilyPondCommandMark.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

LilyPondCommandMark.__str__() <==> str(x)

Note

Inherited from __builtin__.object

Table Of Contents

This Page