marktools.BarLine

Inheritance diagram of abjad.tools.marktools.BarLine.BarLine.BarLine

class abjad.tools.marktools.BarLine.BarLine.BarLine(bar_line_string='|', format_slot='after')[source]

New in version 2.4.

Abjad model of bar line:

abjad> staff = Staff("c'4 d'4 e'4 f'4")
abjad> bar_line = marktools.BarLine('|.')(staff[-1])
abjad> bar_line
BarLine('|.')(f'4)
abjad> f(staff)
\new Staff {
    c'4
    d'4
    e'4
    f'4
    \bar "|."
}

Return bar line.

Read-only Properties

BarLine.format

Read-only LilyPond input format of LilyPond command mark:

abjad> note = Note("c'4")
abjad> lilypond_command = marktools.LilyPondCommandMark('slurDotted')(note)
abjad> lilypond_command.format
'\slurDotted'

Return string.

Note

Inherited from marktools.LilyPondCommandMark

BarLine.start_component

Read-only reference to mark start component:

abjad> note = Note("c'4")
abjad> mark = marktools.Mark()(note)
abjad> mark.start_component
Note("c'4")

Return component or none.

Note

Inherited from marktools.Mark

Read/write Properties

BarLine.bar_line_string[source]

Get bar line string of bar line:

abjad> staff = Staff("c'4 d'4 e'4 f'4")
abjad> bar_line = marktools.BarLine()(staff[-1])
abjad> bar_line.bar_line_string
'|'

Set bar line string of bar line:

abjad> bar_line.bar_line_string = '|.'
abjad> bar_line.bar_line_string
'|.'
abjad> f(staff)
\new Staff {
    c'4
    d'4
    e'4
    f'4
    \bar "|."
}

Set string.

BarLine.command_name

Get command name of LilyPond command mark:

abjad> lilypond_command = marktools.LilyPondCommandMark('slurDotted')
abjad> lilypond_command.command_name
'slurDotted'

Set command name of LilyPond command mark:

abjad> lilypond_command.command_name = 'slurDashed'
abjad> lilypond_command.command_name
'slurDashed'

Set string.

Note

Inherited from marktools.LilyPondCommandMark

BarLine.format_slot

New in version 2.3.

Get format slot of LilyPond command mark:

abjad> note = Note("c'4")
abjad> lilypond_command = marktools.LilyPondCommandMark('break', 'after')
abjad> lilypond_command.format_slot
'after'

Set format slot of LiyPond command mark:

abjad> note = Note("c'4")
abjad> lilypond_command = marktools.LilyPondCommandMark('break', 'after')
abjad> lilypond_command.format_slot = 'before'
abjad> lilypond_command.format_slot
'before'

Set to 'before', 'after', 'opening', 'closing', 'right' or none.

Note

Inherited from marktools.LilyPondCommandMark

Methods

BarLine.attach(start_component)

Attach mark to start_component:

abjad> note = Note("c'4")
abjad> mark = marktools.Mark()
abjad> mark.attach(note)
Mark()(c'4)
abjad> mark.start_component
Note("c'4")

Return mark.

Note

Inherited from marktools.Mark

BarLine.detach()

Detach mark:

abjad> note = Note("c'4")
abjad> mark = marktools.Mark()(note)
abjad> mark.start_component
Note("c'4")
abjad> mark.detach()
Mark()
abjad> mark.start_component is None
True

Return mark.

Note

Inherited from marktools.Mark

Special Methods

BarLine.__call__(*args)

Note

Inherited from marktools.Mark

BarLine.__delattr__(*args)

Note

Inherited from marktools.Mark

BarLine.__eq__(arg)

Note

Inherited from marktools.LilyPondCommandMark

BarLine.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

BarLine.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

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

Note

Inherited from __builtin__.object

BarLine.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

BarLine.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

BarLine.__ne__(arg)

Note

Inherited from marktools.Mark

BarLine.__repr__()

Note

Inherited from marktools.Mark

BarLine.__setattr__()

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

Note

Inherited from __builtin__.object

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

Note

Inherited from __builtin__.object

Table Of Contents

This Page