1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
6 lsrtags
= "editorial-annotations, vocal-music"
9 This example shows how to put crosses on stems. Mark the beginning
10 of a spoken section with the @code{\\speakOn} keyword, and end it
11 with the @code{\\speakOff} keyword. Remember to end cross sections
12 before entering any rest: this function also adds crosses to the
13 invisible stems of rests.
15 doctitle
= "Marking notes of spoken parts with a cross on the stem"
19 \override Stem
#'stencil
= #(lambda
(grob
)
20 (ly
:stencil-combine-at-edge
23 (-
(ly
:grob-property grob
'direction
))
24 (grob-interpret-markup grob
25 (markup
#:hspace -
1.025 #:fontsize -
4
26 #:musicglyph
"noteheads.s2cross"))
31 \revert Stem
#'stencil