]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/vertically-aligned-dynamics-and-textscripts.ly
e5de65f8afb3a640e2ac16cfe41b48a3671adf6b
[lilypond.git] / input / lsr / vertically-aligned-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.57"
4
5 \header {
6   lsrtags = "tweaks-and-overrides, spacing"
7
8   texidoc = "
9 By setting the @code{Y-extent} property to a suitable value, all
10 @code{DynamicLineSpanner} objects (hairpins and dynamic texts) can be
11 aligned to a common reference point, regardless of their actual extent.
12 This way, every element will be vertically aligned, thus producing a
13 more pleasing output.
14
15 The same idea is used to align the text scripts along their baseline.
16
17 "
18   doctitle = "Vertically aligned dynamics and textscripts"
19 } % begin verbatim
20 music = \relative c'' {
21   c2\p^\markup { gorgeous } c\f^\markup { fantastic }
22   c4\p c\f\> c c\!\p
23 }
24
25 {
26   \music \break
27   \override DynamicLineSpanner #'staff-padding = #2.0
28   \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
29   \override TextScript #'Y-extent = #'(-1.5 . 1.5)
30   \music
31 }