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