LilyPondContextSetting

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.LilyPondContextSetting.LilyPondContextSetting" [URL="../api/abjad/lilypondnames/LilyPondContextSetting.html#abjad.lilypondnames.LilyPondContextSetting.LilyPondContextSetting", color=black, fontcolor=white, label="Lily\nPond\nContext\nSetting", 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.LilyPondContextSetting.LilyPondContextSetting"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.lilypondnames.LilyPondContextSetting.LilyPondContextSetting(lilypond_type=None, context_property='autoBeaming', is_unset=False, value=False)

LilyPond context setting.

>>> context_setting = abjad.LilyPondContextSetting(
...    lilypond_type='Score',
...    context_property='autoBeaming',
...    value=False,
...    )
>>> print('\n'.join(context_setting.format_pieces))
\set Score.autoBeaming = ##f

Attributes Summary

__eq__ Is true when argument is a LilyPond context setting with equivalent keyword values.
__hash__ Hashes LilyPond context setting.
context_property Gets LilyPond context property name.
format_pieces Gets LilyPond context setting \set or \unset format pieces.
is_unset Is true if context setting unsets its value.
lilypond_type Gets LilyPond type.
value Gets value of LilyPond context setting.

Special methods

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

__eq__(argument)

Is true when argument is a LilyPond context setting with equivalent keyword values.

Return type:bool
(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

__hash__()

Hashes LilyPond context setting.

Redefined in tandem with __eq__.

Return type:int
(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

context_property

Gets LilyPond context property name.

Return type:str
format_pieces

Gets LilyPond context setting \set or \unset format pieces.

Return type:Tuple[str, …]
is_unset

Is true if context setting unsets its value.

Return type:Optional[bool]
lilypond_type

Gets LilyPond type.

Return type:Optional[str]
value

Gets value of LilyPond context setting.

Return type:Any