]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/chord-name.cc
test
[lilypond.git] / lily / chord-name.cc
index 1cf1cc0a0c67d0a9e9e5148b56ac29a85fd56a51..e2ec6929e9dda58a4a9e60f47edd58d7613271ee 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1999--2001 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c)  1999--2002 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "chord-name.hh"
@@ -12,7 +12,7 @@
 #include "font-interface.hh"
 #include "grob.hh"
 #include "paper-column.hh"
-#include "line-of-score.hh"
+#include "system.hh"
 #include "staff-symbol-referencer.hh"
 #include "text-item.hh"
 
@@ -26,8 +26,8 @@ Chord_name::after_line_breaking (SCM smob)
   SCM s = me->get_grob_property ("begin-of-line-visible");
   if (to_boolean (s))
     {
-      if (Paper_column::rank_i (me->column_l ()) -
-         me->line_l ()->spanned_rank_iv ()[LEFT] > 1)
+      if (Paper_column::get_rank (me->get_column ()) -
+         me->get_system ()->spanned_rank_iv ()[LEFT] > 1)
        me->suicide ();
     }
   return SCM_UNSPECIFIED;
@@ -61,3 +61,9 @@ Chord_name::brew_molecule (SCM smob)
 
   return mol.smobbed_copy ();
 }
+
+
+ADD_INTERFACE (Chord_name, "chord-name-interface",
+  "generate a chord name",
+  "pitches chord chord-name-function inversion bass begin-of-line-visible");
+