X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fmarking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly;h=31d0b8505b8fb6af99c4289a03691ccc92bb4cf8;hb=bcd127bc07fc7b53704f9db8a6cf3d53e9d4094a;hp=d8c04a8d4cf5f07066fadfd9cdc7c968f0489e8b;hpb=1c122290caffd067b81c60a18c97e61d1c6b209e;p=lilypond.git diff --git a/Documentation/snippets/marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly b/Documentation/snippets/marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly index d8c04a8d4c..31d0b8505b 100644 --- a/Documentation/snippets/marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly +++ b/Documentation/snippets/marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly @@ -1,10 +1,13 @@ -%% Do not edit this file; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.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.20" +\version "2.18.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 @@ -16,7 +19,7 @@ a spoken section with the @code{\\speakOn} keyword, and end it with the } % begin verbatim speakOn = { - \override Stem #'stencil = + \override Stem.stencil = #(lambda (grob) (let* ((x-parent (ly:grob-parent grob X)) (is-rest? (ly:grob? (ly:grob-object x-parent 'rest)))) @@ -27,13 +30,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 Stem.stencil + \revert Flag.stencil } \score { @@ -48,4 +52,3 @@ speakOff = { } } } -