]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/rhythmic-slashes.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / rhythmic-slashes.ly
index 42f404b9f2fcde130d1dc4a7a81600ef0dd3808b..70ec77a604125e1041f8438c7a2f6f6f6931bddd 100644 (file)
@@ -1,7 +1,10 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
 %% This file is in the public domain.
-\version "2.13.4"
+\version "2.19.22"
 
 \header {
   lsrtags = "rhythms, tweaks-and-overrides"
@@ -17,7 +20,7 @@ here since the first beat has to be an ordinary note or rest. This
 example shows two solutions to this problem, by redefining ordinary
 rests to be printed as slashes. (If the duration of each beat is not a
 quarter note, replace the @code{r4} in the definitions with a rest of
-the appropriate duration). 
+the appropriate duration).
 
 "
   doctitle = "Rhythmic slashes"
@@ -25,20 +28,20 @@ the appropriate duration).
 
 % Macro to print single slash
 rs = {
-  \once \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
-  \once \override Rest #'thickness = #0.48
-  \once \override Rest #'slope = #1.7
+  \once \override Rest.stencil = #ly:percent-repeat-item-interface::beat-slash
+  \once \override Rest.thickness = #0.48
+  \once \override Rest.slope = #1.7
   r4
 }
 
 % Function to print a specified number of slashes
-comp = #(define-music-function (parser location count) ( integer?)
+comp = #(define-music-function (count) (integer?)
   #{
-    \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
-    \override Rest #'thickness = #0.48
-    \override Rest #'slope = #1.7
+    \override Rest.stencil = #ly:percent-repeat-item-interface::beat-slash
+    \override Rest.thickness = #0.48
+    \override Rest.slope = #1.7
     \repeat unfold $count { r4 }
-    \revert Rest #'stencil
+    \revert Rest.stencil
   #}
 )
 
@@ -49,4 +52,3 @@ comp = #(define-music-function (parser location count) ( integer?)
     \comp #4 |
   }
 }
-