X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fflute-slap-notation.ly;h=0f1627b3242cac8ed3d167fe999eab14a9cd19f7;hb=e0808cc5f4890c5f8f03ed1be48fc911627afea4;hp=de9405d2c1ef9bcf1728b489bd0eb565f3162e8f;hpb=a229fafa17dfdc0638326fab4368fffcfbf38d2a;p=lilypond.git diff --git a/Documentation/snippets/flute-slap-notation.ly b/Documentation/snippets/flute-slap-notation.ly index de9405d2c1..0f1627b324 100644 --- a/Documentation/snippets/flute-slap-notation.ly +++ b/Documentation/snippets/flute-slap-notation.ly @@ -1,10 +1,11 @@ -%% 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.14.2" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.19.22 +\version "2.19.22" \header { lsrtags = "contemporary-notation, winds" @@ -18,15 +19,14 @@ glyph. doctitle = "Flute slap notation" } % begin verbatim - slap = -#(define-music-function (parser location music) (ly:music?) +#(define-music-function (music) (ly:music?) #{ - \override NoteHead #'stencil = + \temporary \override NoteHead.stencil = #(lambda (grob) (grob-interpret-markup grob (markup #:musicglyph "scripts.sforzato"))) - \override NoteHead #'stem-attachment = + \temporary \override NoteHead.stem-attachment = #(lambda (grob) (let* ((thickness (ly:staff-symbol-line-thickness grob)) (stem (ly:grob-object grob 'stem)) @@ -35,9 +35,9 @@ slap = 0.5 0) (/ thickness 2))))) - $music - \revert NoteHead #'stencil - \revert NoteHead #'stem-attachment + #music + \revert NoteHead.stencil + \revert NoteHead.stem-attachment #}) \relative c' {