3.2.9 bar-line-interface

Bar line.

Print a special bar symbol. It replaces the regular bar symbol with a special symbol. The argument bartype is a string which specifies the kind of bar line to print. Options are :|, |:, :|:, :|.|:, :|.:, ||, |., .|, .|., |.|, : and dashed.

These produce, respectively, a right repeat, a left repeat, a thick double repeat, a thin-thick-thin double repeat, a thin-thick double repeat, a double bar, a start bar, an end bar, a thick double bar, a thin-thick-thin bar, a dotted bar and a dashed bar. In addition, there is an option ||: which is equivalent to |: except at line breaks, where it produces a double bar (||) at the end of the line and a repeat sign (|:) at the beginning of the new line.

If bartype is set to empty then nothing is printed, but a line break is allowed at that spot.

gap is used for the gaps in dashed bar lines.

User settable properties:

allow-span-bar (boolean)

If false, no inter-staff bar line will be created below this bar line.

bar-size (dimension, in staff space)

The size of a bar line.

gap (dimension, in staff space)

Size of a gap in a variable symbol.

glyph (string)

A string determining what ‘style’ of glyph is typeset. Valid choices depend on the function that is reading this property.

hair-thickness (number)

Thickness of the thin line in a bar line.

kern (dimension, in staff space)

Amount of extra white space to add. For bar lines, this is the amount of space after a thick line.

thick-thickness (number)

Bar line thickness, measured in line-thickness.

thin-kern (number)

The space after a hair-line in a bar line.

Internal properties:

bar-extent (pair of numbers)

The Y-extent of the actual bar line. This may differ from Y-extent because it does not include the dots in a repeat bar line.

glyph-name (string)

The glyph name within the font.

This grob interface is used in the following graphical object(s): BarLine and SpanBar.


Internals Reference