]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/rhythmic-slashes.ly
Merge branch 'master' into nested-bookparts
[lilypond.git] / input / lsr / rhythmic-slashes.ly
index 6cd245fe0c07d1b91acecbd5672387d3bc820940..e1b33e73c263ad5d30dbbdc79e8eb3dae7fbec9d 100644 (file)
@@ -1,25 +1,27 @@
 %% 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.38"
+\version "2.11.62"
 
 \header {
   lsrtags = "rhythms, tweaks-and-overrides"
- texidoc = "
+
+  texidoc = "
 In \"simple\" lead-sheets, sometimes no actual notes are written,
 instead only \"rhythmic patterns\" and chords above the measures are
-noted giving the structure of a song.  Such a feature is for example
+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.
+when sharing lead sheets with guitarists or jazz musicians. The
+standard support for this using @code{\\repeat percent} is unsuitable
+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 standard support for this is described in section \"Measure
-repeats\", but  then the first beat has to be an ordinary note or rest. 
+"
+  doctitle = "Rhythmic slashes"
+} % begin verbatim
 
-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 r4 in the definitions by a rest of
-the appropriate duration).
-" }
-% begin verbatim
 % Macro to print single slash
 rs = {
   \once \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
@@ -28,7 +30,6 @@ rs = {
   r4
 }
 
-
 % Function to print a specified number of slashes
 comp = #(define-music-function (parser location count) ( integer?)
   #{
@@ -41,7 +42,9 @@ comp = #(define-music-function (parser location count) ( integer?)
 )
 
 \score{
-  \relative c'{
-    c d e f | \rs \rs \rs \rs | \comp #4 |
+  \relative c' {
+    c d e f |
+    \rs \rs \rs \rs |
+    \comp #4 |
   }
 }