]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vertically-aligning-ossias-and-lyrics.ly
lilypond-manuals.css: edit color scheme and some spacing
[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.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, 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 \paper {
22   ragged-right = ##t
23 }
24
25 \relative c' <<
26   \new Staff = "1" { c4 c s2 }
27   \new Staff = "2" { c4 c s2 }
28   \new Staff = "3" { c4 c s2 }
29   { \skip 2
30     <<
31       \lyrics {
32         \set alignBelowContext = #"1"
33         lyrics4 below
34       }
35       \new Staff \with {
36         alignAboveContext = #"3"
37         fontSize = #-2
38         \override StaffSymbol.staff-space = #(magstep -2)
39         \remove "Time_signature_engraver"
40       } {
41         \tuplet 6/4 {
42           \override TextScript.padding = #3
43           c8[^"ossia above" d e d e f]
44         }
45       }
46     >>
47   }
48 >>