]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/vertically-aligning-ossias-and-lyrics.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / vertically-aligning-ossias-and-lyrics.ly
1 %% Do not edit this file; it is auto-generated from LSR!
2 %% Tags: vocal-music, tweaks-and-overrides, spacing
3 \version "2.11.35"
4
5 \header { texidoc = "
6 This snippet shows of to use the @code{alignBelowContext} and
7 @code{alignAboveContext} properties, which may be needed for text
8 elements (e.g. lyrics) positioning, but also for musical contents such
9 as ossias.
10 " }
11 % begin verbatim
12 \paper {
13   ragged-right = ##t
14 }
15
16 \relative <<
17   \new Staff = "1" { c4 c s2 }
18   \new Staff = "2" { c4  c s2 }
19   \new Staff = "3" { c4  c s2 }
20   { \skip 2
21     <<
22       \lyrics {
23         \set alignBelowContext = #"1"
24         below8 first staff
25       }
26       \new Staff {
27         \set Staff.alignAboveContext = #"3"
28         \times 4/6 {
29           \override TextScript #'padding = #3
30           c8^"this" d_"staff" e^"above" d_"last" e^"staff" f
31         }
32       }
33     >> }
34 >>