1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
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 of
10 a spoken section with the @code{\\speakOn} keyword, and end it with the
11 @code{\\speakOff} keyword.
14 doctitle = "Marking notes of spoken parts with a cross on the stem"
18 \override Stem #'stencil = #(lambda (grob)
19 (let* ((x-parent (ly:grob-parent grob X))
20 (is-rest? (ly:grob? (ly:grob-object x-parent 'rest))))
23 (ly:stencil-combine-at-edge
26 (- (ly:grob-property grob 'direction))
27 (grob-interpret-markup grob
28 (markup #:hspace -1.025 #:fontsize -4
29 #:musicglyph "noteheads.s2cross"))
34 \revert Stem #'stencil