]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add NEWS and regression test for skyline-vertical-spacing
authorJoe Neeman <joeneeman@gmail.com>
Sun, 26 Nov 2006 21:03:57 +0000 (23:03 +0200)
committerJoe Neeman <joeneeman@gmail.com>
Sun, 26 Nov 2006 21:03:57 +0000 (23:03 +0200)
Documentation/topdocs/NEWS.tely
input/regression/skyline-vertical-spacing.ly [new file with mode: 0644]

index 25283a13f1f6c13766bf26c54e13d24f730778cf..2b934fa7f51e1dadd38387c11f28ecc00e6fafb0 100644 (file)
@@ -70,7 +70,6 @@ which scares away people.
 avoid collisions.
 
 @lilypond[fragment,ragged-right,relative=1]
-{
   \override TextScript #'outside-staff-priority = #1
   c''
   \once \override TextScript #'self-alignment-X = #CENTER
@@ -78,7 +77,21 @@ avoid collisions.
   b^"this goes above the previous markup"
   a8_"this goes below the dynamic"
   a\f
+@end lilypond
+
+@item Staves are spaced vertically using a skyline algorithm. This helps to avoid
+uneven vertical spacing.
+
+@lilypond[ragged-right]
+\book {
+  \score {
+    {
+      a,,1 | a'4 b' c'' d'' \break
+      \repeat unfold 2 {a' b' c'' d''} | b''''1
+    }
+  }
 }
+@end lilypond
 
 @end itemize
 
diff --git a/input/regression/skyline-vertical-spacing.ly b/input/regression/skyline-vertical-spacing.ly
new file mode 100644 (file)
index 0000000..2a24773
--- /dev/null
@@ -0,0 +1,17 @@
+\header {
+  texidoc = "We use a skyline algorithm to determine the distance to the next
+system instead of relying only on bounding boxes. This keeps gaps between
+systems more uniform."
+}
+
+\paper {ragged-right = ##t}
+
+\version "2.11.0"
+\book {
+  \score {
+    {
+      a,,1 | a'4 b' c'' d'' \break
+      \repeat unfold 2 {a' b' c'' d''} | b''''1
+    }
+  }
+}