LilyPondContext

class lilypondnametools.LilyPondContext(name='Voice')

LilyPond context.

>>> context = lilypondnametools.LilyPondContext('MensuralStaff')
>>> print(format(context))
lilypondnametools.LilyPondContext(
    name='MensuralStaff',
    )
>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     is_global_context = 'X' if lilypond_context.is_global_context else ' '
...     is_score_context = 'X' if lilypond_context.is_score_context else ' '
...     is_staff_group_context = 'X' if lilypond_context.is_staff_group_context else ' '
...     is_staff_context = 'X' if lilypond_context.is_staff_context else ' '
...     is_bottom_context = 'X' if lilypond_context.is_bottom_context else ' '
...     print('[{}] [{}] [{}] [{}] [{}] {}'.format(
...         is_global_context,
...         is_score_context,
...         is_staff_group_context,
...         is_staff_context,
...         is_bottom_context,
...         lilypond_context.name,
...         ))
...
[ ] [ ] [X] [ ] [ ] ChoirStaff
[ ] [ ] [ ] [ ] [X] ChordNames
[ ] [ ] [ ] [ ] [X] CueVoice
[ ] [ ] [ ] [ ] [X] Devnull
[ ] [ ] [ ] [X] [ ] DrumStaff
[ ] [ ] [ ] [ ] [X] DrumVoice
[ ] [ ] [ ] [ ] [X] Dynamics
[ ] [ ] [ ] [ ] [X] FiguredBass
[ ] [ ] [ ] [ ] [X] FretBoards
[X] [ ] [ ] [ ] [ ] Global
[ ] [ ] [X] [ ] [ ] GrandStaff
[ ] [ ] [ ] [X] [ ] GregorianTranscriptionStaff
[ ] [ ] [ ] [ ] [X] GregorianTranscriptionVoice
[ ] [ ] [ ] [X] [ ] KievanStaff
[ ] [ ] [ ] [ ] [X] KievanVoice
[ ] [ ] [ ] [ ] [X] Lyrics
[ ] [ ] [ ] [X] [ ] MensuralStaff
[ ] [ ] [ ] [ ] [X] MensuralVoice
[ ] [ ] [ ] [ ] [X] NoteNames
[ ] [ ] [ ] [ ] [X] NullVoice
[ ] [ ] [ ] [X] [ ] PetrucciStaff
[ ] [ ] [ ] [ ] [X] PetrucciVoice
[ ] [ ] [X] [ ] [ ] PianoStaff
[ ] [ ] [ ] [X] [ ] RhythmicStaff
[ ] [X] [ ] [ ] [ ] Score
[ ] [ ] [ ] [X] [ ] Staff
[ ] [ ] [X] [ ] [ ] StaffGroup
[ ] [ ] [ ] [X] [ ] TabStaff
[ ] [ ] [ ] [ ] [X] TabVoice
[ ] [ ] [ ] [X] [ ] VaticanaStaff
[ ] [ ] [ ] [ ] [X] VaticanaVoice
[ ] [ ] [ ] [ ] [X] Voice

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" [color=1, group=0, label=AbjadValueObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.abctools.AbjadValueObject.AbjadValueObject"; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_lilypondnametools { graph [label=lilypondnametools]; "abjad.tools.lilypondnametools.LilyPondContext.LilyPondContext" [color=black, fontcolor=white, group=2, label=<<B>LilyPondContext</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" -> "abjad.tools.lilypondnametools.LilyPondContext.LilyPondContext"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

accepted_by Gets contexts accepting LilyPond context.
accepts Gets contexts accepted by LilyPond context.
alias Gets alias of LilyPond context.
default_child Gets default child of LilyPond context.
engravers Gets engravers belonging to LilyPond context.
grobs Gets grobs created by LilyPond context.
is_bottom_context Is true if LilyPond context is a bottom context.
is_custom Is true if LilyPond context is user-created.
is_global_context Is true if LilyPond context is a global context.
is_score_context Is true if LilyPond context is a score context.
is_staff_context Is true if LilyPond context is a staff context.
is_staff_group_context Is true if LilyPond context is a staff group context.
list_all_contexts() Lists all contexts.
name Gets name of LilyPond context.
property_names Gets property names of LilyPond context.
register(class_[, accepted_by, accepts, ...]) Registers a new context.
unregister([context]) Unregisters custom context.
__copy__(*arguments) Copies Abjad value object.
__eq__(argument) Is true when all initialization values of Abjad value object equal the initialization values of argument.
__format__([format_specification]) Formats Abjad object.
__hash__() Hashes Abjad value object.
__ne__(argument) Is true when Abjad object does not equal argument.
__new__(class_[, name])
__repr__() Gets interpreter representation of Abjad object.

Read-only properties

LilyPondContext.accepted_by

Gets contexts accepting LilyPond context.

>>> for accepting_context in context.accepted_by:
...     accepting_context
...
LilyPondContext(name='Score')
>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     print('{}:'.format(lilypond_context.name))
...     accepted_by = lilypond_context.accepted_by
...     if accepted_by:
...         accepted_by = ',\n    '.join(_.name for _ in accepted_by)
...         print('    {}'.format(accepted_by))
...
ChoirStaff:
    ChoirStaff,
    Score,
    StaffGroup
ChordNames:
    ChoirStaff,
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
CueVoice:
    DrumStaff,
    GregorianTranscriptionStaff,
    KievanStaff,
    MensuralStaff,
    PetrucciStaff,
    RhythmicStaff,
    Staff,
    TabStaff,
    VaticanaStaff
Devnull:
    Score
DrumStaff:
    ChoirStaff,
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
DrumVoice:
    DrumStaff
Dynamics:
    GrandStaff,
    PianoStaff
FiguredBass:
    ChoirStaff,
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
FretBoards:
    Score,
    StaffGroup
Global:
GrandStaff:
    ChoirStaff,
    Score,
    StaffGroup
GregorianTranscriptionStaff:
    Score
GregorianTranscriptionVoice:
    GregorianTranscriptionStaff
KievanStaff:
    Score
KievanVoice:
    KievanStaff
Lyrics:
    ChoirStaff,
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
MensuralStaff:
    Score
MensuralVoice:
    MensuralStaff
NoteNames:
    Score
NullVoice:
    DrumStaff,
    GregorianTranscriptionStaff,
    KievanStaff,
    MensuralStaff,
    PetrucciStaff,
    RhythmicStaff,
    Staff,
    TabStaff,
    VaticanaStaff
PetrucciStaff:
    Score
PetrucciVoice:
    PetrucciStaff
PianoStaff:
    ChoirStaff,
    Score,
    StaffGroup
RhythmicStaff:
    ChoirStaff,
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
Score:
    Global
Staff:
    ChoirStaff,
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
StaffGroup:
    ChoirStaff,
    Score,
    StaffGroup
TabStaff:
    GrandStaff,
    PianoStaff,
    Score,
    StaffGroup
TabVoice:
    TabStaff
VaticanaStaff:
    Score
VaticanaVoice:
    VaticanaStaff
Voice:
    RhythmicStaff,
    Staff
LilyPondContext.accepts

Gets contexts accepted by LilyPond context.

>>> for accepted_context in context.accepts:
...     accepted_context
...
LilyPondContext(name='CueVoice')
LilyPondContext(name='MensuralVoice')
LilyPondContext(name='NullVoice')

Returns tuple.

LilyPondContext.alias

Gets alias of LilyPond context.

>>> context.alias
LilyPondContext(name='Staff')

Returns LilyPond context or none.

LilyPondContext.default_child

Gets default child of LilyPond context.

>>> context.default_child
LilyPondContext(name='MensuralVoice')
>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     print('{}:'.format(lilypond_context.name))
...     default_child = lilypond_context.default_child
...     if default_child:
...         print('    {}'.format(default_child.name))
...
ChoirStaff:
    Staff
ChordNames:
CueVoice:
Devnull:
DrumStaff:
    DrumVoice
DrumVoice:
Dynamics:
FiguredBass:
FretBoards:
Global:
    Score
GrandStaff:
    Staff
GregorianTranscriptionStaff:
    GregorianTranscriptionVoice
GregorianTranscriptionVoice:
KievanStaff:
    KievanVoice
KievanVoice:
Lyrics:
MensuralStaff:
    MensuralVoice
MensuralVoice:
NoteNames:
NullVoice:
PetrucciStaff:
    PetrucciVoice
PetrucciVoice:
PianoStaff:
    Staff
RhythmicStaff:
    Voice
Score:
    Staff
Staff:
    Voice
StaffGroup:
    Staff
TabStaff:
    TabVoice
TabVoice:
VaticanaStaff:
    VaticanaVoice
VaticanaVoice:
Voice:

Returns LilyPond context or none.

LilyPondContext.engravers

Gets engravers belonging to LilyPond context.

>>> for engraver in context.engravers:
...     engraver
...
LilyPondEngraver(name='Accidental_engraver')
LilyPondEngraver(name='Axis_group_engraver')
LilyPondEngraver(name='Bar_engraver')
LilyPondEngraver(name='Clef_engraver')
LilyPondEngraver(name='Collision_engraver')
LilyPondEngraver(name='Cue_clef_engraver')
LilyPondEngraver(name='Custos_engraver')
LilyPondEngraver(name='Dot_column_engraver')
LilyPondEngraver(name='Figured_bass_engraver')
LilyPondEngraver(name='Figured_bass_position_engraver')
LilyPondEngraver(name='Fingering_column_engraver')
LilyPondEngraver(name='Font_size_engraver')
LilyPondEngraver(name='Grob_pq_engraver')
LilyPondEngraver(name='Instrument_name_engraver')
LilyPondEngraver(name='Key_engraver')
LilyPondEngraver(name='Ledger_line_engraver')
LilyPondEngraver(name='Ottava_spanner_engraver')
LilyPondEngraver(name='Output_property_engraver')
LilyPondEngraver(name='Piano_pedal_align_engraver')
LilyPondEngraver(name='Piano_pedal_engraver')
LilyPondEngraver(name='Pure_from_neighbor_engraver')
LilyPondEngraver(name='Rest_collision_engraver')
LilyPondEngraver(name='Script_row_engraver')
LilyPondEngraver(name='Separating_line_group_engraver')
LilyPondEngraver(name='Staff_collecting_engraver')
LilyPondEngraver(name='Staff_symbol_engraver')
LilyPondEngraver(name='Time_signature_engraver')

Returns tuple.

LilyPondContext.grobs

Gets grobs created by LilyPond context.

>>> for grob in context.grobs:
...     grob
...
LilyPondGrob(name='Accidental')
LilyPondGrob(name='AccidentalCautionary')
LilyPondGrob(name='AccidentalPlacement')
LilyPondGrob(name='AccidentalSuggestion')
LilyPondGrob(name='BarLine')
LilyPondGrob(name='BassFigure')
LilyPondGrob(name='BassFigureAlignment')
LilyPondGrob(name='BassFigureAlignmentPositioning')
LilyPondGrob(name='BassFigureBracket')
LilyPondGrob(name='BassFigureContinuation')
LilyPondGrob(name='BassFigureLine')
LilyPondGrob(name='Clef')
LilyPondGrob(name='ClefModifier')
LilyPondGrob(name='CueClef')
LilyPondGrob(name='CueEndClef')
LilyPondGrob(name='Custos')
LilyPondGrob(name='DotColumn')
LilyPondGrob(name='FingeringColumn')
LilyPondGrob(name='InstrumentName')
LilyPondGrob(name='KeyCancellation')
LilyPondGrob(name='KeySignature')
LilyPondGrob(name='LedgerLineSpanner')
LilyPondGrob(name='NoteCollision')
LilyPondGrob(name='OttavaBracket')
LilyPondGrob(name='PianoPedalBracket')
LilyPondGrob(name='RestCollision')
LilyPondGrob(name='ScriptRow')
LilyPondGrob(name='SostenutoPedal')
LilyPondGrob(name='SostenutoPedalLineSpanner')
LilyPondGrob(name='StaffSpacing')
LilyPondGrob(name='StaffSymbol')
LilyPondGrob(name='SustainPedal')
LilyPondGrob(name='SustainPedalLineSpanner')
LilyPondGrob(name='TimeSignature')
LilyPondGrob(name='UnaCordaPedal')
LilyPondGrob(name='UnaCordaPedalLineSpanner')
LilyPondGrob(name='VerticalAxisGroup')

Returns tuple.

LilyPondContext.is_bottom_context

Is true if LilyPond context is a bottom context. Otherwise false.

>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     is_bottom_context = 'X' if lilypond_context.is_bottom_context else ' '
...     print('[{}] {}'.format(is_bottom_context, lilypond_context.name))
...
[ ] ChoirStaff
[X] ChordNames
[X] CueVoice
[X] Devnull
[ ] DrumStaff
[X] DrumVoice
[X] Dynamics
[X] FiguredBass
[X] FretBoards
[ ] Global
[ ] GrandStaff
[ ] GregorianTranscriptionStaff
[X] GregorianTranscriptionVoice
[ ] KievanStaff
[X] KievanVoice
[X] Lyrics
[ ] MensuralStaff
[X] MensuralVoice
[X] NoteNames
[X] NullVoice
[ ] PetrucciStaff
[X] PetrucciVoice
[ ] PianoStaff
[ ] RhythmicStaff
[ ] Score
[ ] Staff
[ ] StaffGroup
[ ] TabStaff
[X] TabVoice
[ ] VaticanaStaff
[X] VaticanaVoice
[X] Voice

Returns true or false.

LilyPondContext.is_custom

Is true if LilyPond context is user-created. Otherwise false.

>>> context.is_custom
False

Returns true or false.

LilyPondContext.is_global_context

Is true if LilyPond context is a global context. Otherwise false.

>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     is_global_context = 'X' if lilypond_context.is_global_context else ' '
...     print('[{}] {}'.format(is_global_context, lilypond_context.name))
...
[ ] ChoirStaff
[ ] ChordNames
[ ] CueVoice
[ ] Devnull
[ ] DrumStaff
[ ] DrumVoice
[ ] Dynamics
[ ] FiguredBass
[ ] FretBoards
[X] Global
[ ] GrandStaff
[ ] GregorianTranscriptionStaff
[ ] GregorianTranscriptionVoice
[ ] KievanStaff
[ ] KievanVoice
[ ] Lyrics
[ ] MensuralStaff
[ ] MensuralVoice
[ ] NoteNames
[ ] NullVoice
[ ] PetrucciStaff
[ ] PetrucciVoice
[ ] PianoStaff
[ ] RhythmicStaff
[ ] Score
[ ] Staff
[ ] StaffGroup
[ ] TabStaff
[ ] TabVoice
[ ] VaticanaStaff
[ ] VaticanaVoice
[ ] Voice

Returns true or false.

LilyPondContext.is_score_context

Is true if LilyPond context is a score context. Otherwise false.

>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     is_score_context = 'X' if lilypond_context.is_score_context else ' '
...     print('[{}] {}'.format(is_score_context, lilypond_context.name))
...
[ ] ChoirStaff
[ ] ChordNames
[ ] CueVoice
[ ] Devnull
[ ] DrumStaff
[ ] DrumVoice
[ ] Dynamics
[ ] FiguredBass
[ ] FretBoards
[ ] Global
[ ] GrandStaff
[ ] GregorianTranscriptionStaff
[ ] GregorianTranscriptionVoice
[ ] KievanStaff
[ ] KievanVoice
[ ] Lyrics
[ ] MensuralStaff
[ ] MensuralVoice
[ ] NoteNames
[ ] NullVoice
[ ] PetrucciStaff
[ ] PetrucciVoice
[ ] PianoStaff
[ ] RhythmicStaff
[X] Score
[ ] Staff
[ ] StaffGroup
[ ] TabStaff
[ ] TabVoice
[ ] VaticanaStaff
[ ] VaticanaVoice
[ ] Voice

Returns true or false.

LilyPondContext.is_staff_context

Is true if LilyPond context is a staff context. Otherwise false.

>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     is_staff_context = 'X' if lilypond_context.is_staff_context else ' '
...     print('[{}] {}'.format(is_staff_context, lilypond_context.name))
...
[ ] ChoirStaff
[ ] ChordNames
[ ] CueVoice
[ ] Devnull
[X] DrumStaff
[ ] DrumVoice
[ ] Dynamics
[ ] FiguredBass
[ ] FretBoards
[ ] Global
[ ] GrandStaff
[X] GregorianTranscriptionStaff
[ ] GregorianTranscriptionVoice
[X] KievanStaff
[ ] KievanVoice
[ ] Lyrics
[X] MensuralStaff
[ ] MensuralVoice
[ ] NoteNames
[ ] NullVoice
[X] PetrucciStaff
[ ] PetrucciVoice
[ ] PianoStaff
[X] RhythmicStaff
[ ] Score
[X] Staff
[ ] StaffGroup
[X] TabStaff
[ ] TabVoice
[X] VaticanaStaff
[ ] VaticanaVoice
[ ] Voice

Returns true or false.

LilyPondContext.is_staff_group_context

Is true if LilyPond context is a staff group context. Otherwise false.

>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     is_staff_group_context = 'X' if lilypond_context.is_staff_group_context else ' '
...     print('[{}] {}'.format(is_staff_group_context, lilypond_context.name))
...
[X] ChoirStaff
[ ] ChordNames
[ ] CueVoice
[ ] Devnull
[ ] DrumStaff
[ ] DrumVoice
[ ] Dynamics
[ ] FiguredBass
[ ] FretBoards
[ ] Global
[X] GrandStaff
[ ] GregorianTranscriptionStaff
[ ] GregorianTranscriptionVoice
[ ] KievanStaff
[ ] KievanVoice
[ ] Lyrics
[ ] MensuralStaff
[ ] MensuralVoice
[ ] NoteNames
[ ] NullVoice
[ ] PetrucciStaff
[ ] PetrucciVoice
[X] PianoStaff
[ ] RhythmicStaff
[ ] Score
[ ] Staff
[X] StaffGroup
[ ] TabStaff
[ ] TabVoice
[ ] VaticanaStaff
[ ] VaticanaVoice
[ ] Voice

Returns true or false.

LilyPondContext.name

Gets name of LilyPond context.

>>> context.name
'MensuralStaff'

Returns string.

LilyPondContext.property_names

Gets property names of LilyPond context.

>>> for property_name in context.property_names:
...     property_name
...
'accidentalGrouping'
'autoAccidentals'
'autoCautionaries'
'busyGrobs'
'clefGlyph'
'clefPosition'
'clefTransposition'
'clefTranspositionStyle'
'createKeyOnClefChange'
'createSpacing'
'cueClefGlyph'
'cueClefPosition'
'cueClefTransposition'
'cueClefTranspositionStyle'
'currentCommandColumn'
'currentMusicalColumn'
'explicitClefVisibility'
'explicitCueClefVisibility'
'explicitKeySignatureVisibility'
'extraNatural'
'figuredBassAlterationDirection'
'figuredBassCenterContinuations'
'figuredBassFormatter'
'fontSize'
'forbidBreak'
'forceClef'
'harmonicAccidentals'
'hasAxisGroup'
'hasStaffSpacing'
'ignoreFiguredBassRest'
'implicitBassFigures'
'initialTimeSignatureVisibility'
'instrumentName'
'internalBarNumber'
'keepAliveInterfaces'
'keyAlterationOrder'
'keyAlterations'
'lastKeyAlterations'
'localAlterations'
'middleCClefPosition'
'middleCCuePosition'
'middleCOffset'
'ottavation'
'partialBusy'
'pedalSostenutoStrings'
'pedalSostenutoStyle'
'pedalSustainStrings'
'pedalSustainStyle'
'pedalUnaCordaStrings'
'pedalUnaCordaStyle'
'printKeyCancellation'
'shortInstrumentName'
'shortVocalName'
'stavesFound'
'timeSignatureFraction'
'tonic'
'useBassFigureExtenders'
'vocalName'
'whichBar'

Returns tuple.

Methods

LilyPondContext.unregister(context=None)

Unregisters custom context.

>>> custom_context = lilypondnametools.LilyPondContext.register(
...     accepted_by=['Score', 'StaffGroup'],
...     alias='Staff',
...     name='FingeringStaff',
...     )
>>> score_context = lilypondnametools.LilyPondContext('Score')
>>> for accepted_context in score_context.accepts:
...     accepted_context
...
LilyPondContext(name='ChoirStaff')
LilyPondContext(name='ChordNames')
LilyPondContext(name='Devnull')
LilyPondContext(name='DrumStaff')
LilyPondContext(name='FiguredBass')
LilyPondContext(name='FingeringStaff')
LilyPondContext(name='FretBoards')
LilyPondContext(name='GrandStaff')
LilyPondContext(name='GregorianTranscriptionStaff')
LilyPondContext(name='KievanStaff')
LilyPondContext(name='Lyrics')
LilyPondContext(name='MensuralStaff')
LilyPondContext(name='NoteNames')
LilyPondContext(name='PetrucciStaff')
LilyPondContext(name='PianoStaff')
LilyPondContext(name='RhythmicStaff')
LilyPondContext(name='Staff')
LilyPondContext(name='StaffGroup')
LilyPondContext(name='TabStaff')
LilyPondContext(name='VaticanaStaff')
>>> custom_context.unregister()
>>> score_context = lilypondnametools.LilyPondContext('Score')
>>> for accepted_context in score_context.accepts:
...     accepted_context
...
LilyPondContext(name='ChoirStaff')
LilyPondContext(name='ChordNames')
LilyPondContext(name='Devnull')
LilyPondContext(name='DrumStaff')
LilyPondContext(name='FiguredBass')
LilyPondContext(name='FretBoards')
LilyPondContext(name='GrandStaff')
LilyPondContext(name='GregorianTranscriptionStaff')
LilyPondContext(name='KievanStaff')
LilyPondContext(name='Lyrics')
LilyPondContext(name='MensuralStaff')
LilyPondContext(name='NoteNames')
LilyPondContext(name='PetrucciStaff')
LilyPondContext(name='PianoStaff')
LilyPondContext(name='RhythmicStaff')
LilyPondContext(name='Staff')
LilyPondContext(name='StaffGroup')
LilyPondContext(name='TabStaff')
LilyPondContext(name='VaticanaStaff')

Class & static methods

static LilyPondContext.list_all_contexts()

Lists all contexts.

>>> for lilypond_context in lilypondnametools.LilyPondContext.list_all_contexts():
...     lilypond_context
...
LilyPondContext(name='ChoirStaff')
LilyPondContext(name='ChordNames')
LilyPondContext(name='CueVoice')
LilyPondContext(name='Devnull')
LilyPondContext(name='DrumStaff')
LilyPondContext(name='DrumVoice')
LilyPondContext(name='Dynamics')
LilyPondContext(name='FiguredBass')
LilyPondContext(name='FretBoards')
LilyPondContext(name='Global')
LilyPondContext(name='GrandStaff')
LilyPondContext(name='GregorianTranscriptionStaff')
LilyPondContext(name='GregorianTranscriptionVoice')
LilyPondContext(name='KievanStaff')
LilyPondContext(name='KievanVoice')
LilyPondContext(name='Lyrics')
LilyPondContext(name='MensuralStaff')
LilyPondContext(name='MensuralVoice')
LilyPondContext(name='NoteNames')
LilyPondContext(name='NullVoice')
LilyPondContext(name='PetrucciStaff')
LilyPondContext(name='PetrucciVoice')
LilyPondContext(name='PianoStaff')
LilyPondContext(name='RhythmicStaff')
LilyPondContext(name='Score')
LilyPondContext(name='Staff')
LilyPondContext(name='StaffGroup')
LilyPondContext(name='TabStaff')
LilyPondContext(name='TabVoice')
LilyPondContext(name='VaticanaStaff')
LilyPondContext(name='VaticanaVoice')
LilyPondContext(name='Voice')

Returns tuple.

classmethod LilyPondContext.register(class_, accepted_by=None, accepts=None, alias=None, consists=None, default_child=None, denies=None, name=None, removes=None)

Registers a new context.

>>> custom_context = lilypondnametools.LilyPondContext.register(
...     accepted_by=['Score', 'StaffGroup'],
...     alias='Staff',
...     name='BowingStaff',
...     removes=['Note_heads_engraver'],
...     )
>>> print(format(custom_context))
lilypondnametools.LilyPondContext(
    name='BowingStaff',
    )
>>> custom_context.is_custom
True
>>> for engraver in custom_context.engravers:
...     engraver
...
LilyPondEngraver(name='Accidental_engraver')
LilyPondEngraver(name='Axis_group_engraver')
LilyPondEngraver(name='Bar_engraver')
LilyPondEngraver(name='Clef_engraver')
LilyPondEngraver(name='Collision_engraver')
LilyPondEngraver(name='Cue_clef_engraver')
LilyPondEngraver(name='Dot_column_engraver')
LilyPondEngraver(name='Figured_bass_engraver')
LilyPondEngraver(name='Figured_bass_position_engraver')
LilyPondEngraver(name='Fingering_column_engraver')
LilyPondEngraver(name='Font_size_engraver')
LilyPondEngraver(name='Grob_pq_engraver')
LilyPondEngraver(name='Instrument_name_engraver')
LilyPondEngraver(name='Key_engraver')
LilyPondEngraver(name='Ledger_line_engraver')
LilyPondEngraver(name='Ottava_spanner_engraver')
LilyPondEngraver(name='Output_property_engraver')
LilyPondEngraver(name='Piano_pedal_align_engraver')
LilyPondEngraver(name='Piano_pedal_engraver')
LilyPondEngraver(name='Pure_from_neighbor_engraver')
LilyPondEngraver(name='Rest_collision_engraver')
LilyPondEngraver(name='Script_row_engraver')
LilyPondEngraver(name='Separating_line_group_engraver')
LilyPondEngraver(name='Staff_collecting_engraver')
LilyPondEngraver(name='Staff_symbol_engraver')
LilyPondEngraver(name='Time_signature_engraver')
>>> score_context = lilypondnametools.LilyPondContext('Score')
>>> custom_context in score_context.accepts
True
>>> custom_context.unregister()

Special methods

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

(AbjadValueObject).__eq__(argument)

Is true when all initialization values of Abjad value object equal the initialization values of argument.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

(AbjadObject).__ne__(argument)

Is true when Abjad object does not equal argument. Otherwise false.

Returns true or false.

static LilyPondContext.__new__(class_, name='Voice')
(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.