Abjad model of a LilyPond markup command:
abjad> circle = markuptools.MarkupCommand('draw-circle', 2.5, 0.1, False)
abjad> square = markuptools.MarkupCommand('rounded-box', 'hello?')
abjad> line = markuptools.MarkupCommand('line', [square, 'wow!'])
abjad> rotate = markuptools.MarkupCommand('rotate', 60, line)
abjad> combine = markuptools.MarkupCommand('combine', rotate, circle)
abjad> print combine
\combine \rotate #60 \line { \rounded-box hello? wow! } \draw-circle #2.5 #0.1 ##f
Insert markup command in markup to attach to score components:
abjad> note = Note("c'4")
abjad> markup = markuptools.Markup(combine)
abjad> markup(note)
Markup('\\combine \\rotate #60 \\line { \\rounded-box hello? wow! } \\draw-circle #2.5 #0.1 ##f')(c'4)
abjad> f(note)
c'4 - \markup { \combine \rotate #60 \line { \rounded-box hello? wow! } \draw-circle #2.5 #0.1 ##f }
Markup commands are immutable.
x.__delattr__(‘name’) <==> del x.name
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 __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
True when id(self) does not equal id(arg).
Return boolean.
Note
Inherited from abctools.AbjadObject
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object