]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-aligned-dynamics-and-textscripts.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / vertically-aligned-dynamics-and-textscripts.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "spacing, tweaks-and-overrides, workaround"
11
12   texidoc = "
13 All @code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
14 placed with their reference line at least @code{'staff-padding} from
15 the staff, unless other notation forces them to be farther. Setting
16 @code{'staff-padding} to a sufficiently large value aligns the dynamics.
17
18 The same idea, together with @code{\\textLengthOn}, is used to align
19 the text scripts along their baseline.
20
21 "
22   doctitle = "Vertically aligned dynamics and textscripts"
23 } % begin verbatim
24
25 music = \relative c' {
26   a'2\p b\f
27   e4\p f\f\> g, b\p
28   c2^\markup { \huge gorgeous } c^\markup { \huge fantastic }
29 }
30
31 {
32   \music
33   \break
34   \override DynamicLineSpanner.staff-padding = #3
35   \textLengthOn
36   \override TextScript.staff-padding = #1
37   \music
38 }