Script - LilyPond program-reference
Description: LilyPond program-reference

Next: ScriptColumn, Previous: RestCollision, Up: All layout objects

#### Script

Script objects are created by: Drum_notes_engraver, New_fingering_engraver and Script_engraver

Standard settings:

`staff-padding` (dimension, in staff space):
  `0.25`

  Maintain this much space between reference points and the staff. Its effect is to align objects of differing sizes (like the dynamic p and f) on their baselines.

`X-offset` (number):
  `ly:self-alignment-interface::centered-on-x-parent`

  The horizontal amount that this object is moved relative to its X-parent

`Y-offset` (number):
  `ly:side-position-interface::y-aligned-side`

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

`side-axis` (number):
  `1`

  If the value is #X (or equivalently 1), the object is placed horizontally next to the other object. If the value is #Y or 0, it is placed vertically.

`stencil` (unknown):
  `ly:script-interface::print`

  The symbol to print.

`direction` (direction):
  `ly:script-interface::calc-direction`

  If side-position is 1 (#X), then this property determines if the object is placed #LEFT, #CENTER or #RIGHT with respect to the other object. Otherwise, it determines if the object is placed #UP #CENTER or #DOWN. Numerical values may also be used. #UP=1, #DOWN=-1, #LEFT=-1, #RIGHT=1, CENTER=0 but also other numerical values are permitted.

`font-encoding` (symbol):
  `'fetaMusic`

  The font encoding is the broadest category for selecting a font. Options include: `fetaMusic`, `fetaNumber`, `TeX-text`, `TeX-math`, `fetaBraces`, `fetaDynamic`

This object supports the following interfaces: side-position-interface, script-interface, item-interface, font-interface and grob-interface

Next: ScriptColumn, Previous: RestCollision, Up: All layout objects

This page is for LilyPond-2.10.33 (stable-branch).