]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/user/changing-defaults.itely (Common tweaks):
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Mon, 2 May 2005 09:20:22 +0000 (09:20 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Mon, 2 May 2005 09:20:22 +0000 (09:20 +0000)
Added example where the context has to be specified explicitly
(MetronomeMark).

ChangeLog
Documentation/user/changing-defaults.itely

index 092d706bf818cd3d025368feb1efb3413eac4e2d..b07f1f551ba009bb0fe96482274cce8aa1db7d29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-02  Mats Bengtsson  <mabe@drongo.s3.kth.se>
+
+       * Documentation/user/changing-defaults.itely (Common tweaks):
+       Added example where the context has to be specified explicitly
+       (MetronomeMark). 
+
 2005-05-01  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * scripts/lilypond-book.py (ly_options): set timing to #f for
index de1a50b8403b98d9368b2a93b2bf17a41bd90228..797ca0b796bbb72e41aeca2c011b4c19bfcfbabf 100644 (file)
@@ -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