3.2.26 centered-spanner-interface

A spanner that prints a symbol centered between two columns.

User-settable properties:

self-alignment-X (number)

Specify alignment of an object. The value -1 means left aligned, 0 centered, and 1 right-aligned in X direction. Other numerical values may also be specified - the unit is half the object width. If not a number, align on the object’s reference point.

spacing-pair (pair)

A pair of alignment symbols which set an object’s spacing relative to its left and right BreakAlignments.

For example, a MultiMeasureRest will ignore prefatory items at its bounds (i.e., clefs, key signatures and time signatures) using the following override:

\override MultiMeasureRest.spacing-pair =
             #'(staff-bar . staff-bar)

This grob interface is used in the following graphical object(s): CenteredBarNumber, MeasureCounter and PercentRepeat.

LilyPond Internals Reference v2.25.22 (development-branch).