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