X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Frhythmic-slashes.ly;h=70ec77a604125e1041f8438c7a2f6f6f6931bddd;hb=c9726c410b1e7be35283b20e1f8719d272057f14;hp=5feb8b92bd0f4b34d7428b572fa854041f7c9f3d;hpb=5b1f3adfe5e3561eaa0f9440e0697054084b7107;p=lilypond.git diff --git a/Documentation/snippets/rhythmic-slashes.ly b/Documentation/snippets/rhythmic-slashes.ly index 5feb8b92bd..70ec77a604 100644 --- a/Documentation/snippets/rhythmic-slashes.ly +++ b/Documentation/snippets/rhythmic-slashes.ly @@ -1,10 +1,10 @@ %% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% generated from LSR http://lsr.di.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.16.0" +\version "2.19.22" \header { lsrtags = "rhythms, tweaks-and-overrides" @@ -26,23 +26,22 @@ 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 (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 #} )