]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/vertically-aligned-dynamics-and-textscripts.ly
LSR updates
[lilypond.git] / Documentation / snippets / vertically-aligned-dynamics-and-textscripts.ly
index 31ec39112c2f7495ddc2934d95c125ace22db13a..6c6fde759b844744f1b097823284aead4df563d7 100644 (file)
@@ -4,7 +4,7 @@
 %% and then run scripts/auxiliar/makelsr.py
 %%
 %% This file is in the public domain.
-\version "2.16.0"
+\version "2.17.15"
 
 \header {
   lsrtags = "spacing, tweaks-and-overrides, workaround"
@@ -16,13 +16,13 @@ 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.
 
-The same idea is used to align the text scripts along their baseline.
+The same idea, together with \\textLengthOn, is used to align the text
+scripts along their baseline.
 
 "
   doctitle = "Vertically aligned dynamics and textscripts"
 } % begin verbatim
 
-
 music = \relative c' {
   a'2\p b\f
   e4\p f\f\> g, b\p
@@ -32,8 +32,9 @@ music = \relative c' {
 {
   \music
   \break
-  \override DynamicLineSpanner #'staff-padding = #2.0
-  \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
-  \override TextScript #'Y-extent = #'(-1.5 . 1.5)
+  \override DynamicLineSpanner.staff-padding = #2.0
+  \override DynamicLineSpanner.Y-extent = #'(-1.5 . 1.5)
+  \textLengthOn
+  \override TextScript.Y-extent = #'(-1.5 . 1.5)
   \music
 }