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