[ << Backend ] | [Top][Contents][Index][ ? ] | [ Scheme functions >> ] | ||
[ < stanza-number-interface ] | [ Up : Graphical Object Interfaces ] | [ stem-tremolo-interface > ] |
3.2.117 stem-interface
The stem represents the graphical stem. In addition, it internally connects note heads, beams, and tremolos. Rests and whole notes have invisible stems.
The following properties may be set in the details
list.
-
beamed-lengths
List of stem lengths given beam multiplicity.
-
beamed-minimum-free-lengths
List of normal minimum free stem lengths (chord to beams) given beam multiplicity.
-
beamed-extreme-minimum-free-lengths
List of extreme minimum free stem lengths (chord to beams) given beam multiplicity.
-
lengths
Default stem lengths. The list gives a length for each flag count.
-
stem-shorten
How much a stem in a forced direction should be shortened. The list gives an amount depending on the number of flags and beams.
User settable properties:
avoid-note-head
(boolean)If set, the stem of a chord does not pass through all note heads, but starts at the last note head.
beaming
(pair)Pair of number lists. Each number list specifies which beams to make.
0
is the central beam,1
is the next beam toward the note, etc. This information is used to determine how to connect the beaming patterns from stem to stem inside a beam.beamlet-default-length
(pair)A pair of numbers. The first number specifies the default length of a beamlet that sticks out of the left hand side of this stem; the second number specifies the default length of the beamlet to the right. The actual length of a beamlet is determined by taking either the default length or the length specified by
beamlet-max-length-proportion
, whichever is smaller.beamlet-max-length-proportion
(pair)The maximum length of a beamlet, as a proportion of the distance between two adjacent stems.
default-direction
(direction)Direction determined by note head positions.
details
(list)Alist of parameters for detailed grob behavior. More information on the allowed parameters for a grob can be found by looking at the top of the Internals Reference page for each interface having a
details
property.direction
(direction)If
side-axis
is0
(orX
), then this property determines whether the object is placedLEFT
,CENTER
orRIGHT
with respect to the other object. Otherwise, it determines whether the object is placedUP
,CENTER
orDOWN
. Numerical values may also be used:UP
=1
,DOWN
=-1
,LEFT
=-1
,RIGHT
=1
,CENTER
=0
.double-stem-separation
(number)The distance between the two stems of a half note in tablature when using
\tabFullNotation
, not counting the width of the stems themselves, expressed as a multiple of the default height of a staff-space in the traditional five-line staff.duration-log
(integer)The 2-log of the note head duration, i.e.,
0
= whole note,1
= half note, etc.french-beaming
(boolean)Use French beaming style for this stem. The stem stops at the innermost beams.
length
(dimension, in staff space)User override for the stem length of unbeamed stems.
length-fraction
(number)Multiplier for lengths. Used for determining ledger lines and stem lengths.
max-beam-connect
(integer)Maximum number of beams to connect to beams from this stem. Further beams are typeset as beamlets.
neutral-direction
(direction)Which direction to take in the center of the staff.
no-stem-extend
(boolean)If set, notes with ledger lines do not get stems extending to the middle staff line.
note-collision-threshold
(dimension, in staff space)Simultaneous notes that are this close or closer in units of
staff-space
will be identified as vertically colliding. Used byStem
grobs for notes in the same voice, andNoteCollision
grobs for notes in different voices. Default value 1.stem-begin-position
(number)User override for the begin position of a stem.
stemlet-length
(number)How long should be a stem over a rest?
thickness
(number)For grobs made up of lines, this is the thickness of the line. For slurs and ties, this is the distance between the two arcs of the curve’s outline at its thickest point, not counting the diameter of the virtual “pen” that draws the arcs. This property is expressed as a multiple of the current staff-line thickness (i.e. the visual output is influenced by changes to
Staff.StaffSymbol.thickness
).
Internal properties:
beam
(graphical (layout) object)A pointer to the beam, if applicable.
flag
(graphical (layout) object)A pointer to a
Flag
object.melody-spanner
(graphical (layout) object)The
MelodyItem
object for a stem.note-heads
(array of grobs)An array of note head grobs.
positioning-done
(boolean)Used to signal that a positioning element did its job. This ensures that a positioning is only done once.
rests
(array of grobs)An array of rest objects.
stem-info
(pair)A cache of stem parameters.
tremolo-flag
(graphical (layout) object)The tremolo object on a stem.
tuplet-start
(boolean)Is stem at the start of a tuplet?
This grob interface is used in the following graphical object(s): Stem.
[ << Backend ] | [Top][Contents][Index][ ? ] | [ Scheme functions >> ] | ||
[ < stanza-number-interface ] | [ Up : Graphical Object Interfaces ] | [ stem-tremolo-interface > ] |