]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/putting-lyrics-inside-the-staff.ly
Merge branch 'web-experimental' into lilypond/translation
[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.12.2"
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   doctitle = "Putting lyrics inside the staff"
17 } % begin verbatim
18
19 <<
20   \new Staff <<
21     \new Voice = "voc" \relative c' { \stemDown a bes c8 b c4 }
22 >>
23   \new Lyrics \with {
24     \override LyricText #'extra-offset = #'(0 . 8.6)
25     \override LyricExtender #'extra-offset = #'(0 . 8.6)
26     \override LyricHyphen #'extra-offset = #'(0 . 8.6)
27   } \lyricsto "voc" { La la -- la __ _ la }
28 >>
29