]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/changing-the-ambitus-gap.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / new / changing-the-ambitus-gap.ly
diff --git a/Documentation/snippets/new/changing-the-ambitus-gap.ly b/Documentation/snippets/new/changing-the-ambitus-gap.ly
new file mode 100644 (file)
index 0000000..982a447
--- /dev/null
@@ -0,0 +1,40 @@
+\version "2.14.0"
+\header {
+  lsrtags = "pitches"
+  texidoc = "It is possible to change the default gap setting for
+ambitus."
+
+  doctitle = "Changing the ambitus gap"
+}
+
+
+\layout {
+  \context {
+    \Voice
+    \consists "Ambitus_engraver"
+  }
+}
+
+\new Staff {
+  \time 2/4
+  % Default setting
+  c'4 g''
+}
+
+\new Staff {
+  \time 2/4
+  \override AmbitusLine #'gap = #0
+  c'4 g''
+}
+
+\new Staff {
+  \time 2/4
+  \override AmbitusLine #'gap = #1
+  c'4 g''
+}
+
+\new Staff {
+  \time 2/4
+  \override AmbitusLine #'gap = #1.5
+  c'4 g''
+}