]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly
index 18b52b36a6e13c582eb85d9ba7a431a4b1904766..8618782bb1a296ff002e237d947f487418d0abfd 100644 (file)
@@ -4,10 +4,10 @@
 %% and then run scripts/auxiliar/makelsr.py
 %%
 %% This file is in the public domain.
-\version "2.14.0"
+\version "2.16.0"
 
 \header {
-  lsrtags = "editorial-annotations, vocal-music"
+  lsrtags = "contemporary-notation, editorial-annotations, vocal-music, workaround"
 
   texidoc = "
 This example shows how to put crosses on stems.  Mark the beginning of
@@ -18,6 +18,7 @@ a spoken section with the @code{\\speakOn} keyword, and end it with the
   doctitle = "Marking notes of spoken parts with a cross on the stem"
 } % begin verbatim
 
+
 speakOn = {
   \override Stem #'stencil =
     #(lambda (grob)
@@ -30,13 +31,14 @@ speakOn = {
               Y
               (- (ly:grob-property grob 'direction))
               (grob-interpret-markup grob
-                                    (markup #:center-align #:fontsize -4
-                                            #:musicglyph "noteheads.s2cross"))
-              -2.3 0))))
+                                     (markup #:center-align #:fontsize -4
+                                             #:musicglyph "noteheads.s2cross"))
+              -2.3))))
 }
 
 speakOff = {
   \revert Stem #'stencil
+  \revert Flag #'stencil
 }
 
 \score {
@@ -51,4 +53,3 @@ speakOff = {
     }
   }
 }
-