]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/rhythmic-slashes.ly
LSR reimport because of issue 3584 changing version numbers
[lilypond.git] / Documentation / snippets / rhythmic-slashes.ly
index d13f2c4e416ae5d4978b5c0ddd8f899729cf5577..6d47071c7979cb17ab9b530e0e9089ca05c5e2d2 100644 (file)
@@ -1,14 +1,17 @@
-%% Do not edit this file; it is automatically
+%% DO NOT EDIT this file manually; it is automatically
 %% generated from LSR http://lsr.dsi.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.17.6"
 
 \header {
   lsrtags = "rhythms, tweaks-and-overrides"
 
   texidoc = "
-In \"simple\" lead-sheets, sometimes no actual notes are written,
-instead only \"rhythmic patterns\" and chords above the measures are
+In @qq{simple} lead-sheets, sometimes no actual notes are written,
+instead only @qq{rhythmic patterns} and chords above the measures are
 notated giving the structure of a song. Such a feature is for example
 useful while creating/transcribing the structure of a song and also
 when sharing lead sheets with guitarists or jazz musicians. The
@@ -23,22 +26,23 @@ the appropriate duration).
   doctitle = "Rhythmic slashes"
 } % begin verbatim
 
+
 % 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 (parser location 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 +53,3 @@ comp = #(define-music-function (parser location count) ( integer?)
     \comp #4 |
   }
 }
-