]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/flute-slap-notation.ly
lilypond-book robustness: ensure EOL at the end of @verbatim
[lilypond.git] / input / lsr / flute-slap-notation.ly
index e9af0e461888eec546a77e755f0fab91c874b306..3669ca46b46a28a35d941c3bbb62445ce6971ae9 100644 (file)
@@ -1,14 +1,14 @@
 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
 %% This file is in the public domain.
-\version "2.11.62"
+\version "2.13.1"
 
 \header {
   lsrtags = "winds"
 
   texidoc = "
-It is possible to indicate special articulation techniques such as
-flute's \"tongue slap\", by replacing the note head with the
-appropriate glyph.
+It is possible to indicate special articulation techniques such as a
+flute's \"tongue slap\" by replacing the note head with the appropriate
+glyph.
 
 "
   doctitle = "Flute slap notation"
@@ -16,14 +16,17 @@ appropriate glyph.
 
 slap =
 #(define-music-function (parser location music) (ly:music?)
-#{\override NoteHead #'stencil = #ly:text-interface::print
-  \override NoteHead #'text = \markup \musicglyph #"scripts.sforzato"
-  \override NoteHead #'extra-offset = #'(0.1 . 0.0 )
+#{
+  \override NoteHead #'stencil = #(lambda (grob)
+    (grob-interpret-markup grob
+      (markup #:musicglyph "scripts.sforzato")))
+  \override NoteHead #'extra-offset = #'(0.1 . 0.0)
   $music
   \revert NoteHead #'stencil
-  \revert NoteHead #'text
-  \revert NoteHead #'extra-offset #})
+  \revert NoteHead #'extra-offset
+#})
 
 \relative c' {
-  c \slap c d r \slap { g a } b r
+  c4 \slap c d r \slap { g a } b r
 }
+