X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fgenerating-custom-flags.ly;h=a1121ae24cde3effbc2f8272ac566784e561f2eb;hb=c5bfac5612ef73063e5ee8ca61f7ce22fde0d70b;hp=f7d7206504d41410e5055cfc118bd01897d0db27;hpb=5c42908f1c8d0a5c1d88851a2d793ca55476612c;p=lilypond.git diff --git a/Documentation/snippets/generating-custom-flags.ly b/Documentation/snippets/generating-custom-flags.ly index f7d7206504..a1121ae24c 100644 --- a/Documentation/snippets/generating-custom-flags.ly +++ b/Documentation/snippets/generating-custom-flags.ly @@ -1,24 +1,22 @@ -% DO NOT EDIT this file manually; it is automatically -% generated from Documentation/snippets/new -% Make any changes in Documentation/snippets/new/ -% and then run scripts/auxiliar/makelsr.py -% -% This file is in the public domain. -%% Note: this file works from version 2.16.0 -\version "2.16.0" +%% DO NOT EDIT this file manually; it is automatically +%% 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.18.0" \header { lsrtags = "rhythms, tweaks-and-overrides" texidoc = " -The @code{stencil} property of the Flag grob can be set to a custom scheme -function to generate the glyph for the flag. +The @code{stencil} property of the @code{Flag} grob can be set to a +custom scheme function to generate the glyph for the flag. " doctitle = "Generating custom flags" } % begin verbatim - #(define-public (weight-flag grob) (let* ((stem-grob (ly:grob-parent grob X)) (log (- (ly:grob-property stem-grob 'duration-log) 2)) @@ -50,20 +48,20 @@ function to generate the glyph for the flag. snippetexamplenotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 } { - \override Score.RehearsalMark #'self-alignment-X = #LEFT + \override Score.RehearsalMark.self-alignment-X = #LEFT \time 1/4 \mark "Normal flags" \snippetexamplenotes \mark "Custom flag: inverted" - \override Flag #'stencil = #inverted-flag + \override Flag.stencil = #inverted-flag \snippetexamplenotes \mark "Custom flag: weight" - \override Flag #'stencil = #weight-flag + \override Flag.stencil = #weight-flag \snippetexamplenotes \mark "Revert to normal" - \revert Flag #'stencil + \revert Flag.stencil \snippetexamplenotes }