]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add a packed-spacing example.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 19 Feb 2008 02:54:05 +0000 (23:54 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 19 Feb 2008 02:54:05 +0000 (23:54 -0300)
input/regression/spacing-packed.ly [new file with mode: 0644]

diff --git a/input/regression/spacing-packed.ly b/input/regression/spacing-packed.ly
new file mode 100644 (file)
index 0000000..c108cb6
--- /dev/null
@@ -0,0 +1,23 @@
+\header {
+  texidoc = "
+       In packed mode, pack notes as tight as possible.  This makes
+       sense mostly in combination with raggedright mode: the notes
+       are then printed at minimum distance.  This is mostly useful
+       for ancient notation, but may also be useful for some flavours
+       of contemporary music.  If not in raggedright mode, lily will
+       pack as much bars of music as possible into a line, but the
+       line will then be stretched to fill the whole linewidth.
+"
+  }
+
+\version "2.11.40"
+
+\layout {
+  ragged-right = ##t
+}
+
+
+\relative {
+  \override Score.SpacingSpanner #'packed-spacing = ##t
+  c2 d4 f8[ g]
+}