1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.12.0
7 lsrtags
= "editorial-annotations, vocal-music"
10 This example shows how to put crosses on stems. Mark the beginning
11 of a spoken section with the @code{\\speakOn} keyword, and end it
12 with the @code{\\speakOff} keyword.
14 doctitle
= "Marking notes of spoken parts with a cross on the stem"
19 \override Stem
#'stencil
= #(lambda
(grob
)
20 (let
* ((x-parent
(ly
:grob-parent grob X
))
21 (is-rest?
(ly
:grob?
(ly
:grob-object x-parent
'rest
))))
24 (ly
:stencil-combine-at-edge
27 (-
(ly
:grob-property grob
'direction
))
28 (grob-interpret-markup grob
29 (markup
#:hspace -
1.025 #:fontsize -
4
30 #:musicglyph
"noteheads.s2cross"))
35 \revert Stem
#'stencil