LilyPond Internals Reference: 3.1.3 AccidentalPlacement

### 3.1.3 AccidentalPlacement

AccidentalPlacement objects are created by: Accidental_engraver and Ambitus_engraver.

Standard settings:

> `direction` (direction):

>   `-1`

>   If `side-axis` is `0` (or `X`), then this property determines whether the object is placed `LEFT`, `CENTER` or `RIGHT` with respect to the other object. Otherwise, it determines whether the object is placed `UP`, `CENTER` or `DOWN`. Numerical values may also be used: `UP`=`1`, `DOWN`=`-1`, `LEFT`=`-1`, `RIGHT`=`1`, `CENTER`=`0`.

> `right-padding` (dimension, in staff space):

>   `0.15`

>   Space to insert on the right side of an object (e.g., between note and its accidentals).

> `script-priority` (number):

>   `-100`

>   A key for determining the order of scripts in a stack, by being added to the position of the script in the user input, the sum being the overall priority. Smaller means closer to the head.

> `X-extent` (pair of numbers):

>   `ly:axis-group-interface::width`

>   Extent (size) in the X direction, measured in staff-space units, relative to object’s reference point.

This object supports the following interface(s): accidental-placement-interface, grob-interface and item-interface.

#### Internals Reference v2.22.2 (stable-branch).