X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Frhythmic-slashes.ly;h=94e1899252e93bd57392272ababb940865c62ce6;hb=f0a8d907612e79271f97a2936165f57505b12350;hp=554be0e03527dd6fdce7651370ebb70e44856161;hpb=3d8089a42af6304edb8dad56220e845c84832bb2;p=lilypond.git diff --git a/Documentation/snippets/rhythmic-slashes.ly b/Documentation/snippets/rhythmic-slashes.ly index 554be0e035..94e1899252 100644 --- a/Documentation/snippets/rhythmic-slashes.ly +++ b/Documentation/snippets/rhythmic-slashes.ly @@ -1,13 +1,17 @@ -%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it +%% 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.1" +\version "2.17.25" \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 @@ -16,28 +20,29 @@ 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" } % 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 #} ) @@ -48,4 +53,3 @@ comp = #(define-music-function (parser location count) ( integer?) \comp #4 | } } -