]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/beam.cc (least_squares): also set least-squares-dy for
authorhanwen <hanwen>
Tue, 27 Jan 2004 00:54:46 +0000 (00:54 +0000)
committerhanwen <hanwen>
Tue, 27 Jan 2004 00:54:46 +0000 (00:54 +0000)
special case of slanted 2-stem beam to center.

* lily/beam.cc: use Drul_array<Real> iso. interval, because *=
operations on empty intervals are silly.

ChangeLog
input/regression/beam-center-slope.ly
lily/beam.cc

index e1cfbc9dbb1478ccf44dfd7099e1a26caf516082..52df389069954063ca29c152511ee54ebbe671da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-01-27  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/beam.cc (least_squares): also set least-squares-dy for
+       special case of slanted 2-stem beam to center.
+
        * lily/side-position-interface.cc (out_of_staff): move contents of
        out_of_staff into aligned_side.
        remove out_of_staff().
index 24c6ea13bad99547b843da662a0c457f8d3fb2ec..c375f25480b3a99f316139489e3aa8ca6bcbfee5 100644 (file)
@@ -36,7 +36,7 @@
         f[ a]
     }
     \paper{
-       linewidth = 0.0
+       raggedright = ##t
     }
 }
 
index 05b83d41d2cac08c452858bd95bd287f1287d955..0f731ea554494659789531d33e49a25b7566aef1 100644 (file)
@@ -901,7 +901,8 @@ Beam::least_squares (SCM smob)
         slope esp. of the first part of a broken beam should predict
         where the second part goes.
        */
-
+      me->set_grob_property ("least-squares-dy",
+                            gh_double2scm (pos[RIGHT] - pos[LEFT]));
     }
   else
     {