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=8cce5dd067a8a2bab508f5abebc3955db8837bbf;hp=de62cfc023cddb4d4dee4c7309b2618407064182;hpb=a657051a1f3be6e6b3bee3647857bdba3c0b943e;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 de62cfc023..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,13 +1,13 @@ %% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% 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.14.0" +\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 @@ -19,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)))) @@ -30,13 +30,14 @@ speakOn = { Y (- (ly:grob-property grob 'direction)) (grob-interpret-markup grob - (markup #:center-align #:fontsize -4 - #:musicglyph "noteheads.s2cross")) + (markup #:center-align #:fontsize -4 + #:musicglyph "noteheads.s2cross")) -2.3)))) } speakOff = { - \revert Stem #'stencil + \revert Stem.stencil + \revert Flag.stencil } \score { @@ -51,4 +52,3 @@ speakOff = { } } } -