4 lsrtags = "editorial-annotations, vocal-music"
7 This example shows how to put crosses on stems. Mark the beginning
8 of a spoken section with the @code{\\speakOn} keyword, and end it
9 with the @code{\\speakOff} keyword.
11 doctitle = "Marking notes of spoken parts with a cross on the stem"
15 \override Stem #'stencil = #(lambda (grob)
16 (let* ((x-parent (ly:grob-parent grob X))
17 (is-rest? (ly:grob? (ly:grob-object x-parent 'rest))))
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