X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fflute-slap-notation.ly;h=2e0a858e4fc4314def360856da957876d56728e2;hb=537496fcf66026b5e982661d65539985d5a5fb73;hp=9fd9d70d5bca807c24e34162b8224270e94e8437;hpb=0b55335aeca1de539bf1125b717e0c21bb6fa31b;p=lilypond.git diff --git a/Documentation/snippets/flute-slap-notation.ly b/Documentation/snippets/flute-slap-notation.ly index 9fd9d70d5b..2e0a858e4f 100644 --- a/Documentation/snippets/flute-slap-notation.ly +++ b/Documentation/snippets/flute-slap-notation.ly @@ -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.20" +\version "2.14.0" \header { lsrtags = "winds" @@ -19,19 +22,25 @@ slap = #(define-music-function (parser location music) (ly:music?) #{ \override NoteHead #'stencil = - #(lambda (grob) - (grob-interpret-markup grob - (markup #:musicglyph "scripts.sforzato"))) + #(lambda (grob) + (grob-interpret-markup grob + (markup #:musicglyph "scripts.sforzato"))) \override NoteHead #'stem-attachment = - #(lambda (grob) - (let ((thickness (ly:staff-symbol-line-thickness grob))) - (cons 1 (/ thickness 2)))) + #(lambda (grob) + (let* ((thickness (ly:staff-symbol-line-thickness grob)) + (stem (ly:grob-object grob 'stem)) + (dir (ly:grob-property stem 'direction UP))) + (cons 1 (+ (if (= dir DOWN) + 0.5 + 0) + (/ thickness 2))))) $music \revert NoteHead #'stencil \revert NoteHead #'stem-attachment #}) \relative c' { - c4 \slap c d r \slap { g a } b r + c4 \slap c d r + \slap { g4 a } b r }