]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-aligning-ossias-and-lyrics.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / vertically-aligning-ossias-and-lyrics.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.17.6"
8
9 \header {
10   lsrtags = "spacing, tweaks-and-overrides, vocal-music"
11
12   texidoc = "
13 This snippet demonstrates the use of the context properties
14 @code{alignBelowContext} and @code{alignAboveContext} to control the
15 positioning of lyrics and ossias.
16
17 "
18   doctitle = "Vertically aligning ossias and lyrics"
19 } % begin verbatim
20
21
22 \paper {
23   ragged-right = ##t
24 }
25
26 \relative c' <<
27   \new Staff = "1" { c4 c s2 }
28   \new Staff = "2" { c4 c s2 }
29   \new Staff = "3" { c4 c s2 }
30   { \skip 2
31     <<
32       \lyrics {
33         \set alignBelowContext = #"1"
34         lyrics4 below
35       }
36       \new Staff \with {
37         alignAboveContext = #"3"
38         fontSize = #-2
39         \override StaffSymbol.staff-space = #(magstep -2)
40         \remove "Time_signature_engraver"
41       } {
42         \times 4/6 {
43           \override TextScript.padding = #3
44           c8[^"ossia above" d e d e f]
45         }
46       }
47     >>
48   }
49 >>