LilyPondContextSetting

class lilypondnametools.LilyPondContextSetting(context_name=None, context_property='autoBeaming', is_unset=False, value=False)

A LilyPond context setting.

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

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.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_lilypondnametools { graph [label=lilypondnametools]; "abjad.tools.lilypondnametools.LilyPondContextSetting.LilyPondContextSetting" [color=black, fontcolor=white, group=2, label=<<B>LilyPondContextSetting</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.AbjadObject.AbjadObject" -> "abjad.tools.lilypondnametools.LilyPondContextSetting.LilyPondContextSetting"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

context_name Optional LilyPond context name.
context_property 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.
value Value of LilyPond context setting.
__eq__(expr) Is true when expr is a LilyPond context setting with equivalent keyword values.
__format__([format_specification]) Formats Abjad object.
__hash__() Hashes LilyPond context setting.
__ne__(expr) Is true when Abjad object does not equal expr.
__repr__() Gets interpreter representation of Abjad object.

Read-only properties

LilyPondContextSetting.context_name

Optional LilyPond context name.

Returns string or none.

LilyPondContextSetting.context_property

LilyPond context property name.

Returns string.

LilyPondContextSetting.format_pieces

Gets LilyPond context setting set or unset format pieces.

Returns tuple of strings.

LilyPondContextSetting.is_unset

Is true if context setting unsets its value. Otherwise false.

Returns boolean or none.

LilyPondContextSetting.value

Value of LilyPond context setting.

Returns arbitrary object.

Special methods

LilyPondContextSetting.__eq__(expr)

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

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

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

Returns string.

LilyPondContextSetting.__hash__()

Hashes LilyPond context setting.

Returns integer.

(AbjadObject).__ne__(expr)

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

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.