]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/one-staff.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / one-staff.ly
diff --git a/input/regression/one-staff.ly b/input/regression/one-staff.ly
new file mode 100644 (file)
index 0000000..45ed449
--- /dev/null
@@ -0,0 +1,25 @@
+\version "2.19.26"
+
+\header {
+  texidoc = "@code{OneStaff} contexts can be used for letting several
+contexts use the same vertical position.  This example shows chords being
+placed in a staff and immediately following it."
+}
+
+\layout {
+  ragged-right = ##t
+}
+
+\new OneStaff
+{
+  << % First element in <<>> so that it is not kept alive spuriously
+    \new Staff
+    {
+      c'4 d' e' f'
+      \chords \with { \override ChordName.Y-offset = -1 }
+      { d1:m7 b1:min7.5- }
+    }
+  >>
+  \chords \with { \override ChordName.Y-offset = -1 }
+  { d1:m7 b1:min7.5- }
+}