]> git.donarmstrong.com Git - lilypond.git/commitdiff
print demerits
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 23 Jul 2002 22:33:30 +0000 (22:33 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 23 Jul 2002 22:33:30 +0000 (22:33 +0000)
Documentation/user/preface.itely
lily/gourlay-breaking.cc
lily/staff-spacing.cc

index 8d947eb6ca80aab95d7ef6e20698944c142fcd43..9cd0714f97da269c23ec7ca711f2ff36c9a565b7 100644 (file)
@@ -13,8 +13,24 @@ happened, Han-Wen accidentally wanted to print out some parts from a
 score, so he started looking at the software, and he quickly got hooked.
 It was soon decided that MPP was a dead end. After lots of
 philosophizing and heated e-mail exchanges Han-Wen started LilyPond in
-1996.  This time, Jan got sucked into Han-Wen's new project.  The rest
-is, as they say, history.
+1996.  This time, Jan got sucked into Han-Wen's new project.
+
+A stable release, like version 1.6 is a good moment to contemplate the
+past and the present.  Looking back we notice something curious: when
+we started, we mistook our naivite for self confidence, and our
+interested was piqued by music typography. LilyPond was our pet
+project. Somewhere along the line, it grew out of our hands. Today, we
+can't tell whether we are doing LilyPond, or LilyPond is doing
+us. Working on it has become more than a simple hobby. We're not sure
+how this happened, but we think 
+
+  overestimated our  slef the combination of  high energy strong 
+
+
+
+  one thing that
+stands out. Somewhere 
+
 
 [TODO some more here.]
 
index ac250e9684a96c6dd382d373fa0a0c75c1715ed2..d01dd461c0b541841bafad798238fd0acc7d38c2 100644 (file)
@@ -6,6 +6,7 @@
   (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 #include <math.h>              // rint
+#include <stdio.h>
 
 #include "gourlay-breaking.hh"
 #include "column-x-positions.hh"
@@ -167,6 +168,10 @@ Gourlay_breaking::do_solve () const
       i = prev;
     }
 
+  if (verbose_global_b)
+    printf("Optimal demerits: %f\n", optimal_paths.top().demerits_f_); 
+
+  
   if (optimal_paths.top ().demerits_f_ >= infinity_f)
     warning (_ ("No feasible line breaking found"));
   
index 81bc06000d1585f019337d11534f23ef88a44bbb..9e995156cfb638cdd3f51996cf73a3d82d1a2ee5 100644 (file)
@@ -168,8 +168,6 @@ Staff_spacing::extremal_break_aligned_grob (Grob *separation_item, Direction d,
   return last_grob;  
 }
 
-/*
-*/
 void
 Staff_spacing::get_spacing_params (Grob *me, Real * space, Real * fixed)
 {
@@ -200,7 +198,10 @@ Staff_spacing::get_spacing_params (Grob *me, Real * space, Real * fixed)
                                                 &last_ext);
   if (!last_grob)
     {
-      programming_error ("empty break column? --fixme");
+      /*
+       we used to have a warning here, but itgenerates a lot of
+       spurious error messages.
+      */
       return ;
     }