]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/putting-lyrics-inside-the-staff.ly
LSR: Update.
[lilypond.git] / Documentation / snippets / putting-lyrics-inside-the-staff.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.39"
5
6 \header {
7   lsrtags = "staff-notation, text, vocal-music"
8
9   texidoc = "
10 Lyrics can be moved vertically to place them inside the staff.  The
11 lyrics are moved with @code{\\override LyricText #'extra-offset = #'(0
12 . dy)} and there are similar commands to move the extenders and
13 hyphens.  The offset needed is established with trial and error.
14
15
16
17
18 "
19   doctitle = "Putting lyrics inside the staff"
20 } % begin verbatim
21
22 <<
23   \new Staff <<
24     \new Voice = "voc" \relative c' { \stemDown a bes c8 b c4 }
25 >>
26   \new Lyrics \with {
27     \override LyricText #'extra-offset = #'(0 . 8.6)
28     \override LyricExtender #'extra-offset = #'(0 . 8.6)
29     \override LyricHyphen #'extra-offset = #'(0 . 8.6)
30   } \lyricsto "voc" { La la -- la __ _ la }
31 >>