1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
6 lsrtags = "tweaks-and-overrides, spacing"
9 By setting the @code{Y-extent} property to a fixed value, all
10 @code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
11 aligned to a common reference point, regardless of their actual extent.
12 This way, every element will be vertically centered, for a nicer output
13 (you can compare the first and the second line in this example; the
14 trick is only applied on the second line).
16 The same idea is used to align the text scripts along their baseline.
19 doctitle = "Vertically centered dynamics and textscripts"
21 music = \relative c'' {
22 c2\p^\markup { "gorgeous" } c\f^\markup { "fantastic" }
28 \override DynamicLineSpanner #'staff-padding = #2.0
29 \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
30 \override TextScript #'Y-extent = #'(-1.5 . 1.5)