lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing-defaults.itely: correct misstatement about variables for co


From: dak
Subject: Re: changing-defaults.itely: correct misstatement about variables for context mods (issue 5306076)
Date: Tue, 01 Nov 2011 14:12:43 +0000

Reviewers: J_lowe,

Message:
Review addressed.  Changes are trivial enough that countdown can
continue.

Description:
changing-defaults.itely: correct misstatement about variables for
context mods

Please review this at http://codereview.appspot.com/5306076/

Affected files:
  M Documentation/notation/changing-defaults.itely


Index: Documentation/notation/changing-defaults.itely
diff --git a/Documentation/notation/changing-defaults.itely b/Documentation/notation/changing-defaults.itely index c589a6932db9c2043190879a4eb54fb97ee9e5ce..83f9aee050dfad35679064889010f72b54c3046b 100644
--- a/Documentation/notation/changing-defaults.itely
+++ b/Documentation/notation/changing-defaults.itely
@@ -724,10 +724,48 @@ this score block.
 Modifications can be made to the @code{Score} context or all
 @code{Voice} contexts in a similar way.

address@hidden
+Context changes can be placed in a variable and applied to a
address@hidden definition by prepending the modification with
address@hidden:
address@hidden,verbatim]
+blubb = \with {
+  fontSize = #-4
+  \override Stem #'thickness = #4.0
+  \remove "Time_signature_engraver"
+}

-It is not possible to collect context changes in a variable and apply
-them to a @code{\context} definition by referring to that variable.
+bla = \with {
+  fontSize = #3
+  \override Stem #'thickness = #-2.0
+}
+
+melody = \relative c'' {
+  a4 a a a |
+  a4 a a a |
+}
+
+\score {
+  <<
+    \new Staff <<
+      \melody
+      s1*0^"Small, thicker stems, no time signature"
+    >>
+    \new Staff \bla <<
+      \melody
+      s1*0^"Different"
+    >>
+  >>
+  \layout {
+    \context {
+      \Staff
+      \blubb
+    }
+  }
+}
address@hidden lilypond
+
+
address@hidden

 The @code{\Staff \RemoveEmptyStaves} will overwrite your current
 @code{\Staff} settings.  If you wish to change the defaults for a





reply via email to

[Prev in Thread] Current Thread [Next in Thread]