LilyPondContext

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.lilypondnames" { graph [label="abjad.lilypondnames"]; node [color=1]; "abjad.lilypondnames.LilyPondContext.LilyPondContext" [URL="../api/abjad/lilypondnames/LilyPondContext.html#abjad.lilypondnames.LilyPondContext.LilyPondContext", color=black, fontcolor=white, label="Lily\nPond\nContext", target=_top]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/lilypondnames/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/lilypondnames/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.lilypondnames.LilyPondContext.LilyPondContext"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.lilypondnames.LilyPondContext.LilyPondContext(name='Voice')

LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> abjad.f(context)
abjad.LilyPondContext(
    name='MensuralStaff',
    )
>>> for lilypond_context in abjad.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

Attributes Summary

__new__ Create and return a new object.
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 Registers a new context.
unregister Unregisters custom context.

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.

static __new__(class_, name='Voice')

Create and return a new object. See help(type) for accurate signature.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Methods

unregister(context=None)

Unregisters custom context.

>>> custom_context = abjad.LilyPondContext.register(
...     accepted_by=['Score', 'StaffGroup'],
...     alias='Staff',
...     name='FingeringStaff',
...     )
>>> score_context = abjad.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 = abjad.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')
Return type:None

Class & static methods

static list_all_contexts()

Lists all contexts.

>>> for lilypond_context in abjad.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')
Return type:Tuple[LilyPondContext, …]
classmethod register(accepted_by=None, accepts=None, alias=None, consists=None, default_child=None, denies=None, name=None, removes=None)

Registers a new context.

>>> custom_context = abjad.LilyPondContext.register(
...     accepted_by=['Score', 'StaffGroup'],
...     alias='Staff',
...     name='BowingStaff',
...     removes=['Note_heads_engraver'],
...     )
>>> print(format(custom_context))
abjad.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 = abjad.LilyPondContext('Score')
>>> custom_context in score_context.accepts
True
>>> custom_context.unregister()
Return type:LilyPondContext

Read-only properties

accepted_by

Gets contexts accepting LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> for accepting_context in context.accepted_by:
...     accepting_context
...
LilyPondContext(name='Score')
>>> for lilypond_context in abjad.LilyPondContext.list_all_contexts():
...     print(f'{lilypond_context.name}:')
...     accepted_by = lilypond_context.accepted_by
...     if accepted_by:
...         accepted_by = ',\n    '.join(_.name for _ in accepted_by)
...         print(f'    {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
Return type:Tuple[LilyPondContext, …]
accepts

Gets contexts accepted by LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> for accepted_context in context.accepts:
...     accepted_context
...
LilyPondContext(name='CueVoice')
LilyPondContext(name='MensuralVoice')
LilyPondContext(name='NullVoice')
Return type:Tuple[LilyPondContext, …]
alias

Gets alias of LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> context.alias
LilyPondContext(name='Staff')
Return type:Optional[LilyPondContext]
default_child

Gets default child of LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> context.default_child
LilyPondContext(name='MensuralVoice')
>>> for lilypond_context in abjad.LilyPondContext.list_all_contexts():
...     print(f'{lilypond_context.name}:')
...     default_child = lilypond_context.default_child
...     if default_child:
...         print(f'    {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:
Return type:Optional[LilyPondContext]
engravers

Gets engravers belonging to LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> 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')
Return type:Tuple[LilyPondEngraver, …]
grobs

Gets grobs created by LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> 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')
Return type:Tuple[LilyPondGrob, …]
is_bottom_context

Is true if LilyPond context is a bottom context.

>>> for lilypond_context in abjad.LilyPondContext.list_all_contexts():
...     is_bottom_context = 'X' if lilypond_context.is_bottom_context else ' '
...     print(f'[{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
Return type:bool
is_custom

Is true if LilyPond context is user-created.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> context.is_custom
False
Return type:bool
is_global_context

Is true if LilyPond context is a global context.

>>> for lilypond_context in abjad.LilyPondContext.list_all_contexts():
...     is_global_context = 'X' if lilypond_context.is_global_context else ' '
...     print(f'[{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
Return type:bool
is_score_context

Is true if LilyPond context is a score context.

>>> for lilypond_context in abjad.LilyPondContext.list_all_contexts():
...     is_score_context = 'X' if lilypond_context.is_score_context else ' '
...     print(f'[{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
Return type:bool
is_staff_context

Is true if LilyPond context is a staff context.

>>> for lilypond_context in abjad.lilypondnames.LilyPondContext.list_all_contexts():
...     is_staff_context = 'X' if lilypond_context.is_staff_context else ' '
...     print(f'[{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
Return type:bool
is_staff_group_context

Is true if LilyPond context is a staff group context.

>>> for lilypond_context in abjad.lilypondnames.LilyPondContext.list_all_contexts():
...     is_staff_group_context = 'X' if lilypond_context.is_staff_group_context else ' '
...     print(f'[{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
Return type:bool
name

Gets name of LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> context.name
'MensuralStaff'
Return type:str
property_names

Gets property names of LilyPond context.

>>> context = abjad.LilyPondContext('MensuralStaff')
>>> 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'
Return type:Tuple[str, …]