[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ledgered stems off in 1.5.24.hjj1
From: |
Han-Wen Nienhuys |
Subject: |
ledgered stems off in 1.5.24.hjj1 |
Date: |
Sun, 2 Dec 2001 23:56:21 +0100 |
address@hidden writes:
> Please look at the regression test from time to time :)
that's what we have users for :-)
--- stem.cc~ Sat Dec 1 15:34:56 2001
+++ stem.cc Sun Dec 2 23:54:53 2001
@@ -586,15 +586,18 @@
Real y1 = Staff_symbol_referencer::position_f (first_head (me));
Real y2 = stem_end_position (me);
- Interval stem_y (y1,y2);
- stem_y.unite (Interval (y2,y1));
+ Interval stem_y (y1 <? y2,y2 >? y1);
+
// dy?
- Real dy = Staff_symbol_referencer::staff_space (me)/2.0;
+ Real dy = Staff_symbol_referencer::staff_space (me) * 0.5;
if (Grob *hed = support_head (me))
{
- Interval head_height = hed->extent (hed,Y_AXIS);
+ /*
+ must not take ledgers into account.
+ */
+ Interval head_height = Note_head::head_extent (hed,Y_AXIS);
Real y_attach = Note_head::stem_attachment_coordinate ( hed, Y_AXIS);
y_attach = head_height.linear_combination (y_attach);
--
Han-Wen Nienhuys | address@hidden | http://www.cs.uu.nl/~hanwen/