tie-breaking.
Add regression test.
--- /dev/null
+\header {
+ texidoc = "Behave sensibly in the presence of large collisions."
+}
+
+\version "2.13.59"
+\new Staff {
+ <<
+ { \voiceOne s2 }
+ \\
+ { \voiceTwo e4 e }
+ \\
+ { \voiceFour
+ f''8[ e'' a'' g''] }
+ >>
+}
|| !collision_free[UP].is_empty ())
{
// We have space above or below collisions (or, no collisions at
|| !collision_free[UP].is_empty ())
{
// We have space above or below collisions (or, no collisions at
+ // all). Should we factor in the size of the collision_free
+ // interval as well?
- (collision_free[DOWN].length () > collision_free[UP].length ()) ?
+ (collision_free[DOWN].distance(beam_left_y) < collision_free[UP].distance (beam_left_y)) ?
collision_free[DOWN] : collision_free[UP];
beam_left_y = point_in_interval (best, 2.0);
collision_free[DOWN] : collision_free[UP];
beam_left_y = point_in_interval (best, 2.0);