]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie.cc
* Documentation/user/instrument-notation.itely (Laissez vibrer
[lilypond.git] / lily / tie.cc
index 8c812e811e9074226c40e6980f8b0a0564ee7a5b..cf2c4d5a389f3c73e292690ca2d23f9d27ac2064 100644 (file)
 #include "note-head.hh"
 #include "tie-column.hh"
 
-/*
-  tie: Connect two noteheads.
-
-  What if we have
-
-  c4 ~ \clef bass ; c4 or
-
-  c4 \staffchange c4
-
-  do we have non-horizontal ties then?
-*/
+int
+Tie::compare (Grob *const &s1,
+             Grob *const &s2)
+{
+  return sign (Tie::get_position (s1) - Tie::get_position (s2));
+}
 
 void
 Tie::set_head (Grob *me, Direction d, Grob *h)