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"
20 \override Stem #'stencil = #(lambda (grob)
21 (ly:stencil-combine-at-edge
24 (- (ly:grob-property grob 'direction))
25 (grob-interpret-markup grob
26 (markup #:hspace -1.025 #:fontsize -4
27 #:musicglyph "noteheads.s2cross"))
32 \revert Stem #'stencil