LilyPond Internals Reference: 3.1.53 KeyCancellation

### 3.1.53 KeyCancellation

KeyCancellation objects are created by: Key_engraver.

Standard settings:

> `break-align-symbol` (symbol):

>   `'key-cancellation`

>   This key is used for aligning and spacing breakable items.

> `break-visibility` (vector):

>   `#(#t #t #f)`

>   A vector of 3 booleans, `#(end-of-line unbroken begin-of-line)`. `#t` means visible, `#f` means killed.

> `extra-spacing-width` (pair of numbers):

>   `'(0.0 . 0.5)`

>   In the horizontal spacing problem, we pad each item by this amount (by adding the ‘car’ on the left side of the item and adding the ‘cdr’ on the right side of the item). In order to make a grob take up no horizontal space at all, set this to `(+inf.0 . -inf.0)`.

> `glyph-name-alist` (list):

>   `'((0 . accidentals.natural))`

>   An alist of key-string pairs.

> `non-musical` (boolean):

>   `#t`

>   True if the grob belongs to a `NonMusicalPaperColumn`.

> `space-alist` (list):

>   `'((time-signature extra-space . 1.25) (staff-bar extra-space . 0.6) (key-signature extra-space . 0.5) (cue-clef extra-space . 0.5) (right-edge extra-space . 0.5) (first-note fixed-space . 2.5))`

>   A table that specifies distances between prefatory items, like clef and time-signature. The format is an alist of spacing tuples: `(break-align-symbol type . distance)`, where type can be the symbols `minimum-space` or `extra-space`.

> `stencil` (stencil):

>   `ly:key-signature-interface::print`

>   The symbol to print.

> `Y-offset` (number):

>   `ly:staff-symbol-referencer::callback`

>   The vertical amount that this object is moved relative to its Y-parent.

This object supports the following interface(s): break-aligned-interface, font-interface, grob-interface, item-interface, key-cancellation-interface, key-signature-interface and staff-symbol-referencer-interface.

#### Internals Reference