]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/putting-lyrics-inside-the-staff.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / putting-lyrics-inside-the-staff.ly
diff --git a/Documentation/snippets/putting-lyrics-inside-the-staff.ly b/Documentation/snippets/putting-lyrics-inside-the-staff.ly
new file mode 100644 (file)
index 0000000..1a776e8
--- /dev/null
@@ -0,0 +1,32 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.14.0"
+
+\header {
+  lsrtags = "staff-notation, text, vocal-music"
+
+  texidoc = "
+Lyrics can be moved vertically to place them inside the staff.  The
+lyrics are moved with @code{\\override LyricText #'extra-offset = #'(0
+. dy)} and there are similar commands to move the extenders and
+hyphens.  The offset needed is established with trial and error.
+
+"
+  doctitle = "Putting lyrics inside the staff"
+} % begin verbatim
+
+<<
+  \new Staff <<
+    \new Voice = "voc" \relative c' { \stemDown a bes c8 b c4 }
+>>
+  \new Lyrics \with {
+    \override LyricText #'extra-offset = #'(0 . 8.6)
+    \override LyricExtender #'extra-offset = #'(0 . 8.6)
+    \override LyricHyphen #'extra-offset = #'(0 . 8.6)
+  } \lyricsto "voc" { La la -- la __ _ la }
+>>
+