sliding score for min-length.
* lily/tie-formatting-problem.cc (set_chord_outline): put dots
in outline too.
(generate_configuration): for small ties, also look for collisions
at Y + DIR*h + DELTA_Y.
(get_variations): consider variation for dot positions too.
2006-02-19 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/tie-formatting-problem.cc (score_configuration): use
+ sliding score for min-length.
+
* Documentation/pictures/GNUmakefile (local-dist): loose the rule
spaghetti for icons.
Real stem_gap_;
Real between_length_limit_;
Real wrong_direction_offset_penalty_;
- Real length_penalty_factor_;
+ Real min_length_penalty_factor_;
Real min_length_;
Real tip_staff_line_clearance_;
Real center_staff_line_clearance_;
Real penalty = 0.0;
Real length = conf.attachment_x_.length ();
- penalty += peak_around (0.5 * details_.min_length_, details_.min_length_, length);
+ penalty +=
+ details_.min_length_penalty_factor_
+ * peak_around (0.33 * details_.min_length_, details_.min_length_, length);
Real tip_pos = conf.position_ + conf.delta_y_ / 0.5 * details_.staff_space_;
Real tip_y = tip_pos * details_.staff_space_ * 0.5;
wrong_direction_offset_penalty_ = get_real_detail("wrong-direction-offset-penalty", 10);
- length_penalty_factor_ = get_real_detail("length-penalty-factor", 1.0);
- min_length_ = get_real_detail("min-length", 0.333);
+ min_length_ = get_real_detail("min-length", 1.0);
+ min_length_penalty_factor_ = get_real_detail("min-length-penalty-factor", 1.0);
+
// in half-space
center_staff_line_clearance_ = get_real_detail ("center-staff-line-clearance", 0.4);
(stem-gap . 0.35)
(height-limit . 1.0)
(horizontal-distance-penalty-factor . 10)
+ (min-length-penalty-factor . 20)
(tie-tie-collision-distance . 0.45)
(tie-tie-collision-penalty . 25.0)
(intra-space-threshold . 1.25)