X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fflute-slap-notation.ly;h=93f6bdb8832b01d904d7affa792a20f418014a21;hb=5774d1d23188141287fba72d702473f7887d37f2;hp=9d5842a451962fc4e7f377d394bd87ee433cafd2;hpb=9158bc17904d4dd930a1f776cfe3226f1ad84092;p=lilypond.git diff --git a/Documentation/snippets/flute-slap-notation.ly b/Documentation/snippets/flute-slap-notation.ly index 9d5842a451..93f6bdb883 100644 --- a/Documentation/snippets/flute-slap-notation.ly +++ b/Documentation/snippets/flute-slap-notation.ly @@ -1,7 +1,7 @@ %% Do not edit this file; it is automatically %% generated from LSR http://lsr.dsi.unimi.it %% This file is in the public domain. -\version "2.13.31" +\version "2.13.39" \header { lsrtags = "winds" @@ -19,19 +19,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 }