X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fflute-slap-notation.ly;h=2e0a858e4fc4314def360856da957876d56728e2;hb=2055f35c47a045a50a01ff4dba8524322cfc3b48;hp=3669ca46b46a28a35d941c3bbb62445ce6971ae9;hpb=3d8089a42af6304edb8dad56220e845c84832bb2;p=lilypond.git diff --git a/Documentation/snippets/flute-slap-notation.ly b/Documentation/snippets/flute-slap-notation.ly index 3669ca46b4..2e0a858e4f 100644 --- a/Documentation/snippets/flute-slap-notation.ly +++ b/Documentation/snippets/flute-slap-notation.ly @@ -1,13 +1,17 @@ -%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it +%% 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.1" +\version "2.14.0" \header { lsrtags = "winds" texidoc = " It is possible to indicate special articulation techniques such as a -flute's \"tongue slap\" by replacing the note head with the appropriate +flute @qq{tongue slap} by replacing the note head with the appropriate glyph. " @@ -17,16 +21,26 @@ glyph. slap = #(define-music-function (parser location music) (ly:music?) #{ - \override NoteHead #'stencil = #(lambda (grob) - (grob-interpret-markup grob + \override NoteHead #'stencil = + #(lambda (grob) + (grob-interpret-markup grob (markup #:musicglyph "scripts.sforzato"))) - \override NoteHead #'extra-offset = #'(0.1 . 0.0) + \override NoteHead #'stem-attachment = + #(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 #'extra-offset + \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 }