X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Frhythmic-slashes.ly;h=94e1899252e93bd57392272ababb940865c62ce6;hb=f0a8d907612e79271f97a2936165f57505b12350;hp=9160497ffe45d15a961004ca76d0c04f4d5b3047;hpb=6019a1e8f0301c1c3bf86ccc92178d820f9c3784;p=lilypond.git diff --git a/Documentation/snippets/rhythmic-slashes.ly b/Documentation/snippets/rhythmic-slashes.ly index 9160497ffe..94e1899252 100644 --- a/Documentation/snippets/rhythmic-slashes.ly +++ b/Documentation/snippets/rhythmic-slashes.ly @@ -1,7 +1,10 @@ -%% 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.29" +\version "2.17.25" \header { lsrtags = "rhythms, tweaks-and-overrides" @@ -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?) #{ - \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 | } } -