From cdb19017dce37a6de3ad79f5755c1f85036b818a Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 20 Jan 2006 17:43:18 +0000 Subject: [PATCH] * lily/tie-formatting-problem.cc (generate_configuration): * lily/tie-formatting-problem.cc (peak_around): new function. (score_configuration): use sliding criterion for staff line collisions. (score_configuration): idem for dot collisions. (generate_configuration): use separate stem_gap for gap to stem. --- ChangeLog | 2 ++ lily/tie-formatting-problem.cc | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2d481225fb..742d8a559e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-01-20 Han-Wen Nienhuys + * lily/tie-formatting-problem.cc (generate_configuration): + * input/regression/tie-chord.ly: use generateTiePattern to simplify file. diff --git a/lily/tie-formatting-problem.cc b/lily/tie-formatting-problem.cc index 91a96d48b1..f9d92bf616 100644 --- a/lily/tie-formatting-problem.cc +++ b/lily/tie-formatting-problem.cc @@ -356,7 +356,11 @@ Tie_formatting_problem::generate_configuration (int pos, Direction dir) const } } - conf->attachment_x_ = get_attachment (y + conf->delta_y_); + /* + we don't recompute attachment_x_ to take changed Y (through + delta_Y) into account. Doing would make ties go into small holes between heads, which + means we get collisions with neighboring heads. + */ conf->attachment_x_.widen ( - details_.x_gap_); Direction d = LEFT; -- 2.39.5