%% Do not edit this file; it is automatically
%% generated from LSR http://lsr.dsi.unimi.it
%% This file is in the public domain.
\version "2.13.4"

\header {
  lsrtags = "winds"

  texidoc = "
It is possible to indicate special articulation techniques such as a
flute @qq{tongue slap} by replacing the note head with the appropriate
glyph.

"
  doctitle = "Flute slap notation"
} % begin verbatim

slap =
#(define-music-function (parser location music) (ly:music?)
#{
  \override NoteHead #'stencil =
    #(lambda (grob)
       (grob-interpret-markup grob
        (markup #:musicglyph "scripts.sforzato")))
  \override NoteHead #'stem-attachment =
    #(lambda (grob)
       (let ((thickness (ly:staff-symbol-line-thickness grob)))
         (cons 1 (/ thickness 2))))
  $music
  \revert NoteHead #'stencil
  \revert NoteHead #'stem-attachment
#})

\relative c' {
  c4 \slap c d r \slap { g a } b r
}

