]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/vertically-aligned-dynamics-and-textscripts.ly
Merge master into nested-bookparts
[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.62"
4
5 \header {
6   lsrtags = "tweaks-and-overrides, spacing"
7
8   texidoces = "
9 Mediante el establecimiento de la propiedad @code{Y-extent} a un valor
10 adecuado, todos los objetos @code{DynamicLineSpanner} (reguladores e
11 indicaciones dinámicas textuales) se pueden alinear con un punto de
12 referencia común, independientemente de sus dimensiones.  De esta
13 manera, todos los elementos estarán alineados verticalmente,
14 produciendo así un resultado más satisfactorio.
15
16 Se usa una idea similar para alinear las inscripciones de texto a lo
17 largo de su línea de base.
18
19 "
20   doctitlees = "Indicaciones dinámicas y textuales alineadas verticalmente"
21
22   texidoc = "
23 By setting the @code{Y-extent} property to a suitable value, all
24 @code{DynamicLineSpanner} objects (hairpins and dynamic texts) can be
25 aligned to a common reference point, regardless of their actual extent.
26 This way, every element will be vertically aligned, thus producing a
27 more pleasing output.
28
29 The same idea is used to align the text scripts along their baseline.
30
31 "
32   doctitle = "Vertically aligned dynamics and textscripts"
33 } % begin verbatim
34 music = \relative c'' {
35   c2\p^\markup { gorgeous } c\f^\markup { fantastic }
36   c4\p c\f\> c c\!\p
37 }
38
39 {
40   \music \break
41   \override DynamicLineSpanner #'staff-padding = #2.0
42   \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
43   \override TextScript #'Y-extent = #'(-1.5 . 1.5)
44   \music
45 }