Stem - LilyPond program-reference
Description: LilyPond program-reference

Next: StemTremolo, Previous: StanzaNumber, Up: All layout objects

#### Stem

Stem objects are created by: Stem_engraver

Standard settings:

`direction` (direction):
  `ly:stem::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.

`duration-log` (integer):
  `stem::calc-duration-log`

  The 2-log of the note head duration, i.e. 0=whole note, 1 = half note, etc.

`default-direction` (direction):
  `ly:stem::calc-default-direction`

  Direction determined by note head positions.

`stem-end-position` (number):
  `ly:stem::calc-stem-end-position`

  Where does the stem end (the end is opposite to the support-head.

`neutral-direction` (direction):
  `-1`

  Which direction to take in the center of the staff.

`stencil` (unknown):
  `ly:stem::print`

  The symbol to print.

`X-extent` (pair of numbers):
  `ly:stem::width`

  Hard coded extent in X direction.

`Y-extent` (pair of numbers):
  `ly:stem::height`

  See `X-extent`.

`length` (dimension, in staff space):
  `ly:stem::calc-length`

  User override for the stem length of unbeamed stems.

`thickness` (number):
  `1.3`

  Line thickness, generally measured in `line-thickness`.

`X-offset` (number):
  `ly:stem::offset-callback`

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

`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 interfaces: stem-interface, item-interface, font-interface and grob-interface

Next: StemTremolo, Previous: StanzaNumber, Up: All layout objects

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