]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / Documentation / snippets / marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly
index f18c7706e3914d594c21fa74cc34588f072affab..de62cfc023cddb4d4dee4c7309b2618407064182 100644 (file)
@@ -1,7 +1,10 @@
-%% Do not edit this file; it is automatically
+%% DO NOT EDIT this file manually; it is automatically
 %% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
 %% This file is in the public domain.
-\version "2.13.10"
+\version "2.14.0"
 
 \header {
   lsrtags = "editorial-annotations, vocal-music"
@@ -16,19 +19,20 @@ a spoken section with the @code{\\speakOn} keyword, and end it with the
 } % begin verbatim
 
 speakOn = {
-  \override Stem #'stencil = #(lambda (grob)
-    (let* ((x-parent (ly:grob-parent grob X))
-           (is-rest? (ly:grob? (ly:grob-object x-parent 'rest))))
-      (if is-rest?
-        empty-stencil
-        (ly:stencil-combine-at-edge
-          (ly:stem::print grob)
-          Y
-          (- (ly:grob-property grob 'direction))
-          (grob-interpret-markup grob
-            (markup #:hspace -1.025 #:fontsize -4
-              #:musicglyph "noteheads.s2cross"))
-          -2.3 0))))
+  \override Stem #'stencil =
+    #(lambda (grob)
+       (let* ((x-parent (ly:grob-parent grob X))
+              (is-rest? (ly:grob? (ly:grob-object x-parent 'rest))))
+         (if is-rest?
+             empty-stencil
+             (ly:stencil-combine-at-edge
+              (ly:stem::print grob)
+              Y
+              (- (ly:grob-property grob 'direction))
+              (grob-interpret-markup grob
+                                    (markup #:center-align #:fontsize -4
+                                            #:musicglyph "noteheads.s2cross"))
+              -2.3))))
 }
 
 speakOff = {