]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/vertically-aligned-dynamics-and-textscripts.ly
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / Documentation / snippets / vertically-aligned-dynamics-and-textscripts.ly
index aafcba176a6f716a1d1c425f05d00b14be066475..9e631e1c2fa9c3f55f225d5d6438cde9a6bb321f 100644 (file)
@@ -1,20 +1,19 @@
 %% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
+%% generated from LSR http://lsr.di.unimi.it
 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
 %% and then run scripts/auxiliar/makelsr.py
 %%
 %% This file is in the public domain.
-\version "2.17.20"
+\version "2.18.0"
 
 \header {
   lsrtags = "spacing, tweaks-and-overrides, workaround"
 
   texidoc = "
-By setting the @code{'Y-extent} property to a suitable value, all
-@code{DynamicLineSpanner} objects (hairpins and dynamic texts) can be
-aligned to a common reference point, regardless of their actual extent.
-This way, every element will be vertically aligned, thus producing a
-more pleasing output.
+All @code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
+placed with their reference line at least @code{'staff-padding} from
+the staff, unless other notation forces them to be farther. Setting
+@code{'staff-padding} to a sufficiently large value aligns the dynamics.
 
 The same idea, together with @code{\\textLengthOn}, is used to align
 the text scripts along their baseline.
@@ -23,8 +22,6 @@ the text scripts along their baseline.
   doctitle = "Vertically aligned dynamics and textscripts"
 } % begin verbatim
 
-\markup \vspace #1 %avoid LSR-bug
-
 music = \relative c' {
   a'2\p b\f
   e4\p f\f\> g, b\p
@@ -34,9 +31,8 @@ music = \relative c' {
 {
   \music
   \break
-  \override DynamicLineSpanner.staff-padding = #2.0
-  \override DynamicLineSpanner.Y-extent = #'(-1.5 . 1.5)
+  \override DynamicLineSpanner.staff-padding = #3
   \textLengthOn
-  \override TextScript.Y-extent = #'(-1.5 . 1.5)
+  \override TextScript.staff-padding = #1
   \music
 }