From fb6143ab539c6e4be44a5fb6a0cf869276d105e1 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 26 Jul 2015 16:26:33 +0200 Subject: [PATCH] Issue 4524: NR Changing Defaults: document \etc --- .../notation/changing-defaults.itely | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/notation/changing-defaults.itely b/Documentation/notation/changing-defaults.itely index 01fc08bcc9..4c000c565d 100644 --- a/Documentation/notation/changing-defaults.itely +++ b/Documentation/notation/changing-defaults.itely @@ -4758,6 +4758,39 @@ custosNote = \relative { c'4 d e f \custosNote g } @end lilypond +@funindex \etc +Both of those functions are simple single expressions where only +the last element of a function call or override is missing. For +those particular function definitions, there is a simpler +alternative syntax, namely just writing out the constant part of +the expression and replacing its final missing element with +@code{\etc}: + +@lilypond[quote,verbatim,ragged-right] +padText = + \once \override TextScript.padding = \etc + +\relative { + c''4^"piu mosso" b a b + \padText #1.8 + c4^"piu mosso" b a b + \padText #2.6 + c4^"piu mosso" b a b +} +@end lilypond + +@lilypond[quote,verbatim,ragged-right] +custosNote = + \tweak NoteHead.stencil #ly:text-interface::print + \tweak NoteHead.text + \markup \musicglyph #"custodes.mensural.u0" + \tweak Stem.stencil ##f + \etc + +\relative { c'4 d e f \custosNote g } +@end lilypond + + Substitution functions with multiple arguments can be defined: @lilypond[quote,verbatim,ragged-right] -- 2.39.2