X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Frhythmic-slashes.ly;h=8fa4ed2a3d747f84009e7c957224d9776cb58f98;hb=37ca1f80bf5401accd17056938f4f7b2c147ddb2;hp=8c21f6f26a260cb445077b18dcf724210c3d69be;hpb=61982f69784ce0fe80c719b0bab53d78c24779ce;p=lilypond.git diff --git a/input/lsr/rhythmic-slashes.ly b/input/lsr/rhythmic-slashes.ly index 8c21f6f26a..8fa4ed2a3d 100644 --- a/input/lsr/rhythmic-slashes.ly +++ b/input/lsr/rhythmic-slashes.ly @@ -1,44 +1,49 @@ -%% Do not edit this file; it is auto-generated from LSR! -%% Tags: rhythms, editorial-and-educational-use -\version "2.11.35" +%% 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.49" -\header { texidoc = " +\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 -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. - -The standard support for this is described in section \"Measure -repeats\", but then 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 r4 in the definitions by a rest of -the appropriate duration). -" } +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). +" + 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 -r4 + \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?) -#{ -\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 -#}) + #{ + \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 + #} +) \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 | + } }