]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/vertically-centered-dynamics-and-textscripts.ly
Fix wrong menu
[lilypond.git] / input / lsr / vertically-centered-dynamics-and-textscripts.ly
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.48"
4
5 \header {
6   lsrtags = "tweaks-and-overrides, spacing"
7
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).
15
16 The same idea is used to align the text scripts along their baseline.
17
18 "
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
24 }
25
26 {
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
32 }