]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/flute-slap-notation.ly
3669ca46b46a28a35d941c3bbb62445ce6971ae9
[lilypond.git] / input / lsr / flute-slap-notation.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "winds"
7
8   texidoc = "
9 It is possible to indicate special articulation techniques such as a
10 flute's \"tongue slap\" by replacing the note head with the appropriate
11 glyph.
12
13 "
14   doctitle = "Flute slap notation"
15 } % begin verbatim
16
17 slap =
18 #(define-music-function (parser location music) (ly:music?)
19 #{
20   \override NoteHead #'stencil = #(lambda (grob)
21     (grob-interpret-markup grob
22       (markup #:musicglyph "scripts.sforzato")))
23   \override NoteHead #'extra-offset = #'(0.1 . 0.0)
24   $music
25   \revert NoteHead #'stencil
26   \revert NoteHead #'extra-offset
27 #})
28
29 \relative c' {
30   c4 \slap c d r \slap { g a } b r
31 }
32