lilypondfiletools.ContextBlock

Inheritance diagram of abjad.tools.lilypondfiletools.ContextBlock.ContextBlock.ContextBlock

class abjad.tools.lilypondfiletools.ContextBlock.ContextBlock.ContextBlock(context_name=None)[source]

New in version 2.5.

Abjad model of LilyPond input file context block:

abjad> context_block = lilypondfiletools.ContextBlock()
abjad> context_block
ContextBlock()
abjad> context_block.context_name = 'Score'
abjad> context_block.override.bar_number.transparent = True
abjad> context_block.override.time_signature.break_visibility = schemetools.Scheme('end-of-line-invisible')
abjad> context_block.set.proportionalNotationDuration = schemetools.SchemeMoment((1, 45))
abjad> f(context_block)
\context {
    \Score
    \override BarNumber #'transparent = ##t
    \override TimeSignature #'break-visibility = #end-of-line-invisible
    proportionalNotationDuration = #(ly:make-moment 1 45)
}

Return context block.

Read-only Properties

ContextBlock.format

Note

Inherited from lilypondfiletools._AttributedBlock

ContextBlock.override[source]

Read-only reference to LilyPond grob override component plug-in.

ContextBlock.set[source]

Read-only reference LilyPond context setting component plug-in.

Read/write Properties

ContextBlock.context_name[source]

Read / write context name.

ContextBlock.is_formatted_when_empty

Note

Inherited from lilypondfiletools._AttributedBlock

Special Methods

ContextBlock.__delattr__()

x.__delattr__(‘name’) <==> del x.name

Note

Inherited from __builtin__.object

ContextBlock.__hash__() <==> hash(x)

Note

Inherited from __builtin__.object

ContextBlock.__repr__()

Note

Inherited from lilypondfiletools._AttributedBlock

ContextBlock.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

ContextBlock.__str__() <==> str(x)

Note

Inherited from __builtin__.object

Table Of Contents

This Page