commands¶
Command classes.
Classes
- class evans.commands.Command(callable=None, command=None, contents=None, indicator=None, selector=None, voice_name=None, source_voice_name=None, target_voice_name=None)[source]¶
Attributes Summary
Calls command on Score.
Return repr(self).
Return str(self).
Special methods
- overridden __call__(score)[source]¶
Calls command on Score.
>>> score = abjad.Score([abjad.Staff("c'4 c'4 c'4 c'4", name="staff one")]) >>> command = evans.Command( ... command="attach", ... indicator=abjad.Markup(r"\markup *", direction="up", literal=True), ... selector=abjad.select().leaves(pitched=True).get([1])[0], ... voice_name="staff one", ... ) >>> command(score) >>> moment = "#(ly:make-moment 1 25)" >>> abjad.setting(score).proportional_notation_duration = moment >>> file = abjad.LilyPondFile( ... items=[score], ... includes=["abjad.ily"], ... global_staff_size=16, ... ) >>> abjad.show(file)
- class evans.commands.HandlerCommand(voice_name, timespan, handler)[source]¶
Attributes Summary
Return repr(self).
Return str(self).
Special methods
- class evans.commands.RhythmCommand(voice_name, timespan, handler)[source]¶
Attributes Summary
Return repr(self).
Return str(self).
Special methods
Functions