]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/putting-lyrics-inside-the-staff.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / putting-lyrics-inside-the-staff.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.17.6"
8
9 \header {
10   lsrtags = "staff-notation, text, vocal-music"
11
12   texidoc = "
13 Lyrics can be moved vertically to place them inside the staff.  The
14 lyrics are moved with @code{\\override LyricText.extra-offset = #'(0
15 . dy)} and there are similar commands to move the extenders and
16 hyphens.  The offset needed is established with trial and error.
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 >>