]> git.donarmstrong.com Git - lilypond.git/blob - input/new/flute-slap-notation.ly
Doc-es: pre-merge update of texidoc committishes.
[lilypond.git] / input / new / flute-slap-notation.ly
1 \version "2.12.0"
2
3 \header {
4   lsrtags = "winds"
5
6   texidoc = "
7 It is possible to indicate special articulation techniques such as
8 flute's \"tongue slap\", by replacing the note head with the
9 appropriate glyph.
10
11 "
12   doctitle = "Flute slap notation"
13 }
14
15 slap =
16 #(define-music-function (parser location music) (ly:music?)
17 #{
18   \override NoteHead #'stencil = #(lambda (grob)
19     (grob-interpret-markup grob
20       (markup #:musicglyph "scripts.sforzato")))
21   \override NoteHead #'extra-offset = #'(0.1 . 0.0)
22   $music
23   \revert NoteHead #'stencil
24   \revert NoteHead #'extra-offset
25 #})
26
27 \relative c' {
28   c4 \slap c d r \slap { g a } b r
29 }