]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/adjusting-lyrics-vertical-spacing.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / new / adjusting-lyrics-vertical-spacing.ly
diff --git a/Documentation/snippets/new/adjusting-lyrics-vertical-spacing.ly b/Documentation/snippets/new/adjusting-lyrics-vertical-spacing.ly
new file mode 100644 (file)
index 0000000..7a707d5
--- /dev/null
@@ -0,0 +1,33 @@
+\version "2.14.0"
+
+\header {
+  lsrtags = "text, vocal-music, spacing"
+  texidoc = "
+This snippet shows how to bring the lyrics line closer to the staff.
+
+"
+  doctitle = "Adjusting lyrics vertical spacing"
+}
+
+% Default layout:
+<<
+  \new Staff \new Voice = melody \relative c' {
+    c4 d e f
+    g4 f e d
+    c1
+  }
+  \new Lyrics \lyricsto melody { aa aa aa aa aa aa aa aa aa }
+
+  % Reducing the minimum space below the staff and above the lyrics:
+  \new Staff {
+    \new Voice = melody \relative c' {
+      c4 d e f
+      g4 f e d
+      c1
+    }
+  }
+  \new Lyrics \with {
+    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing = #'((basic-distance . 1))
+  }
+  \lyricsto melody { aa aa aa aa aa aa aa aa aa }
+>>