LSR: update
[lilypond.git] / input / lsr / vertically-centered-dynamics-and-textscripts.ly
blob63b83a8c2dd59d6e5e02a97c0efe6823ef2f4436
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.
3 \version "2.11.46"
5 \header {
6 lsrtags = "tweaks-and-overrides, spacing"
8 texidoc = "
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"
20 } % begin verbatim
21 music = \relative c'' {
22 c2\p^\markup { gorgeous } c\f^\markup { fantastic }
23 c4\p c\f\> c c\!\p
27 \music \break
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)
31 \music