InstrumentSwitch - LilyPond program-reference
Description: LilyPond program-reference

Next: KeyCancellation, Previous: InstrumentName, Up: All layout objects

#### InstrumentSwitch

InstrumentSwitch objects are created by: Instrument_switch_engraver

Standard settings:

`padding` (dimension, in staff space):
  `0.3`

  Add this much extra space between objects that are next to each other.

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

  The symbol to print.

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

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

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

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

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

  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.

`direction` (direction):
  `1`

  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.

`self-alignment-X` (number):
  `0`

  Specify alignment of an object. The value -1 means left aligned, 0 centered, and 1 right-aligned in X direction. Values in between may also be specified.

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

Next: KeyCancellation, Previous: InstrumentName, Up: All layout objects

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