From 15bb9d9453bbb31d9462059249bf6a4db6105f67 Mon Sep 17 00:00:00 2001 From: Mats Bengtsson Date: Mon, 2 May 2005 09:20:22 +0000 Subject: [PATCH] * Documentation/user/changing-defaults.itely (Common tweaks): Added example where the context has to be specified explicitly (MetronomeMark). --- ChangeLog | 6 ++++++ Documentation/user/changing-defaults.itely | 20 ++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 092d706bf8..b07f1f551b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-02 Mats Bengtsson + + * Documentation/user/changing-defaults.itely (Common tweaks): + Added example where the context has to be specified explicitly + (MetronomeMark). + 2005-05-01 Han-Wen Nienhuys * scripts/lilypond-book.py (ly_options): set timing to #f for diff --git a/Documentation/user/changing-defaults.itely b/Documentation/user/changing-defaults.itely index de1a50b840..797ca0b796 100644 --- a/Documentation/user/changing-defaults.itely +++ b/Documentation/user/changing-defaults.itely @@ -915,8 +915,8 @@ voices: The @code{padding} property for objects with @cindex @code{padding} @code{side-position-interface} can be set to increase the distance between -symbols that are printed above or below notes. We only give an -example; a more elaborate explanation is in @ref{Constructing a +symbols that are printed above or below notes. We provide two +examples; a more elaborate explanation is in @ref{Constructing a tweak}: @lilypond[quote,fragment,relative=1,verbatim] @@ -925,6 +925,22 @@ c2\fermata b2\fermata @end lilypond +@lilypond[quote,fragment,relative=1,verbatim] +% This will not work, see below: +\override MetronomeMark #'padding = #3 +\tempo 4=120 +c1 +% This works: +\override Score.MetronomeMark #'padding = #3 +\tempo 4=80 +d1 +@end lilypond + +Note in the second example how important it is to figure out what +context handles a certain object. Since the @code{MetronomeMark} object +is handled in the Score context, property changes in the @code{Voice} +context will not be noticed. + @end itemize More specific overrides are also possible. The next section -- 2.39.5