]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/skyline-pair.cc
Uses exact horizontal skylines for accidental placement.
[lilypond.git] / lily / skyline-pair.cc
index bbfe9234fcd9dbdc44eb3e33de244d3a61f85771..164117c35bdb62b59516eafe08a8d725e1456fe0 100644 (file)
@@ -90,6 +90,18 @@ Skyline_pair::print () const
   skylines_[DOWN].print ();
 }
 
+Real
+Skyline_pair::left () const
+{
+  return min (skylines_[UP].left (), skylines_[DOWN].left ());
+}
+
+Real
+Skyline_pair::right () const
+{
+  return max (skylines_[UP].right (), skylines_[DOWN].right ());
+}
+
 void
 Skyline_pair::print_points () const
 {