]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/gourlay-breaking.cc
2003 -> 2004
[lilypond.git] / lily / gourlay-breaking.cc
index 543caebacb1362e5b92f2dd15922d9eec03cd569..8f7b0ec9f896776a7474519568ffa2e04b6c2353 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 #include <math.h>              // rint
 #include <stdio.h>
@@ -231,12 +231,22 @@ Gourlay_breaking::combine_demerits (Column_x_positions const &prev,
          break_penalties += gh_scm2double (pen);
        }
     }
+
   /*
-    Q: do want globally non-cramped lines, or locally equally cramped lines. 
+    Q: do we want globally non-cramped lines, or locally equally
+    cramped lines?
+
+    There used to be an example file input/test/uniform-breaking to
+    demonstrate problems with this approach. When music is gradually
+    becoming denser, the uniformity requirement makes lines go from
+    cramped to even more cramped (because going from cramped
+    3meas/line to relatively loose 2meas/line is such a big step.
+    
    */
+
   Real demerit = abs (this_one.force_) +  abs (prev.force_ - this_one.force_)
     + break_penalties;
-
+  
   if (!this_one.satisfies_constraints_b_)
      {
        /*