]> git.donarmstrong.com Git - lilypond.git/commitdiff
(score_stem_lengths): Revert oops.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 13 Aug 2002 15:50:22 +0000 (15:50 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 13 Aug 2002 15:50:22 +0000 (15:50 +0000)
ChangeLog
input/test/super-sub.ly
lily/beam-quanting.cc

index 0b178a19e1fe3a46eb34ac022e54c1573857be23..cea48543e587da05ac320c67f979d9cc66b912ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-08-13  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * lily/beam-quanting.cc (score_stem_lengths): Revert oops.
+
+       * input/template/melody-chords.ly: New file.
+
        * lily/beam.cc (least_squares): Fix asymmetry and scary float
        comparison.
 
index 3a8208095f2cda77d30913117af32b7a9f9cf9aa..27e1ca086335480c2b2b6a7c2bc7d58d11e5daac 100644 (file)
@@ -25,6 +25,8 @@ texidoc="Test super/sub, raise and overstrike."
     c^#'(columns "foe" ((extent . (0 . 0)) "o") "/")
     c^#'(columns "foo" (super "bar" (super "baz")))
     c
+    %% Hmm
     c^#`(columns (lines "" ";" "") (lines "1" ((bold) "2") "3"))
+    c^#`(columns (lines "" ";" "") (lines "1" (columns (bold "2")) "3"))
   }
 }
\ No newline at end of file
index e20393afd54d3ad475a2b96293299169dc6dcf9a..a26b09c3701b7750fee2b8264a72751d03e28118 100644 (file)
@@ -257,7 +257,7 @@ Beam::score_stem_lengths (Link_array<Grob>stems,
                          bool knee, 
                          Real yl, Real yr)
 {
-  Real limit_pen = STEM_LENGTH_LIMIT_PENALTY;
+  Real limit_penalty = STEM_LENGTH_LIMIT_PENALTY;
   Drul_array<Real> score (0, 0);
   Drul_array<int> count (0, 0);
   
@@ -271,16 +271,16 @@ Beam::score_stem_lengths (Link_array<Grob>stems,
       Real dx = xr-xl;
       Real beam_y = yr *(x - xl)/dx + yl * ( xr - x)/dx;
       Real current_y = beam_y + base_stem_ys[i];
-      Real length_pen = STEM_LENGTH_LIMIT_PENALTY;
+      Real length_pen = STEM_LENGTH_DEMERIT_FACTOR;
       
       Stem_info info = stem_infos[i];
       Direction d = info.dir_;
 
-      score[d] += limit_pen * (0 >? (d * (info.shortest_y_ - current_y)));
+      score[d] += limit_penalty * (0 >? (d * (info.shortest_y_ - current_y)));
       
       Real ideal_diff = d * (current_y - info.ideal_y_);
       Real ideal_score = shrink_extra_weight (ideal_diff, 1.5);
-
+      
       /* We introduce a power, to make the scoring strictly
          convex. Otherwise a symmetric knee beam (up/down/up/down)
          does not have an optimum in the middle. */