From 2ead2fc6732f30ff33869e1aa57df1150ceb5011 Mon Sep 17 00:00:00 2001 From: hanwen Date: Tue, 27 Jan 2004 00:54:46 +0000 Subject: [PATCH] * lily/beam.cc (least_squares): also set least-squares-dy for special case of slanted 2-stem beam to center. * lily/beam.cc: use Drul_array iso. interval, because *= operations on empty intervals are silly. --- ChangeLog | 3 +++ input/regression/beam-center-slope.ly | 2 +- lily/beam.cc | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1cfbc9dbb..52df389069 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-01-27 Han-Wen Nienhuys + * 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(). diff --git a/input/regression/beam-center-slope.ly b/input/regression/beam-center-slope.ly index 24c6ea13ba..c375f25480 100644 --- a/input/regression/beam-center-slope.ly +++ b/input/regression/beam-center-slope.ly @@ -36,7 +36,7 @@ f[ a] } \paper{ - linewidth = 0.0 + raggedright = ##t } } diff --git a/lily/beam.cc b/lily/beam.cc index 05b83d41d2..0f731ea554 100644 --- a/lily/beam.cc +++ b/lily/beam.cc @@ -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 { -- 2.39.5