]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/vertically-centered-dynamics-and-textscripts.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[lilypond.git] / input / lsr / vertically-centered-dynamics-and-textscripts.ly
index 5d183b4fd25d6cd42a98a9c7635c43dd73d59c73..209c67322fd1ed81729c4ef042d2c1c16a121363 100644 (file)
@@ -4,35 +4,29 @@
 
 \header {
   lsrtags = "tweaks-and-overrides, spacing"
- texidoc = "
-By setting the Y-extent property to a fixed value (here -1.5 . 1.5), we
-force LilyPond to align every elements of the DynamicLineSpanner (text
-elements and dynamics) to a common reference point, regardless to the
-actual extent of these objects. This way, every element will be
-vertically centered, for a nicer output (you can compare the first and
-the second line in this example; the trick is only applied on the
-second line).
+
+  texidoc = "
+By setting the @code{Y-extent} property to a fixed value, all
+@code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
+aligned to a common reference point, regardless of their actual extent.
+This way, every element will be vertically centered, for a nicer output
+(you can compare the first and the second line in this example; the
+trick is only applied on the second line).
 
 The same idea is used to align the text scripts along their baseline.
-" }
-% begin verbatim
-\paper { indent = 0 line-width = 5\in }
 
-music = \relative c''
-{
-   c2\p^\markup { "gorgeous" } c\f^\markup { "fantastic" }
-   c4\p c \f \> c c \! \p
+"
+  doctitle = "Vertically centered dynamics and textscripts"
+} % begin verbatim
+music = \relative c'' {
+  c2\p^\markup { "gorgeous" } c\f^\markup { "fantastic" }
+  c4\p c\f\> c c\!\p
 }
 
-\score
 {
-   {
-       \music \break
-
-       \override DynamicLineSpanner #'staff-padding = #2.0
-       \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
-       \override TextScript #'Y-extent = #'(-1.5 . 1.5)
-       \music
-   }
+  \music \break
+  \override DynamicLineSpanner #'staff-padding = #2.0
+  \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
+  \override TextScript #'Y-extent = #'(-1.5 . 1.5)
+  \music
 }
-