]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/flute-slap-notation.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / flute-slap-notation.ly
index 7ccf58eb27e9fb8667cd364035140fd914c14dab..0f1627b3242cac8ed3d167fe999eab14a9cd19f7 100644 (file)
@@ -1,10 +1,14 @@
-%% 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.12.2"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.22
+\version "2.19.22"
 
 \header {
-  lsrtags = "winds"
+  lsrtags = "contemporary-notation, winds"
 
   texidoc = "
 It is possible to indicate special articulation techniques such as a
@@ -16,13 +20,13 @@ glyph.
 } % begin verbatim
 
 slap =
-#(define-music-function (parser location music) (ly:music?)
+#(define-music-function (music) (ly:music?)
 #{
-  \override NoteHead #'stencil =
+  \temporary \override NoteHead.stencil =
   #(lambda (grob)
      (grob-interpret-markup grob
       (markup #:musicglyph "scripts.sforzato")))
-  \override NoteHead #'stem-attachment =
+  \temporary \override NoteHead.stem-attachment =
   #(lambda (grob)
      (let* ((thickness (ly:staff-symbol-line-thickness grob))
             (stem (ly:grob-object grob 'stem))
@@ -31,13 +35,12 @@ slap =
                       0.5
                       0)
                   (/ thickness 2)))))
-  $music
-  \revert NoteHead #'stencil
-  \revert NoteHead #'stem-attachment
+  #music
+  \revert NoteHead.stencil
+  \revert NoteHead.stem-attachment
 #})
 
 \relative c' {
   c4 \slap c d r
   \slap { g4 a } b r
 }
-