]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/adjusting-lyrics-vertical-spacing.ly
e31a0aeb16d5deaace76286f750a024320ab53e8
[lilypond.git] / Documentation / snippets / new / adjusting-lyrics-vertical-spacing.ly
1 \version "2.13.42"
2
3 \header {
4   lsrtags = "text, vocal-music, spacing"
5   texidoc = "
6 This snippet shows how to bring the lyrics line closer to the staff.
7
8 "
9   doctitle = "Adjusting lyrics vertical spacing"
10 }
11
12 % Default layout:
13 <<
14   \new Staff \new Voice = melody \relative c' {
15     c4 d e f
16     g4 f e d
17     c1
18   }
19   \new Lyrics \lyricsto melody { aa aa aa aa aa aa aa aa aa }
20
21   % Reducing the minimum space below the staff and above the lyrics:
22   \new Staff {
23     \new Voice = melody \relative c' {
24       c4 d e f
25       g4 f e d
26       c1
27     }
28   }
29   \new Lyrics \with {
30     \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing = #'((basic-distance . 1))
31   }
32   \lyricsto melody { aa aa aa aa aa aa aa aa aa }
33 >>