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