]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-head-line-engraver.cc
* lily/output-def-scheme.cc: new file.
[lilypond.git] / lily / note-head-line-engraver.cc
index 190c0bcc93d749487eeae0838cb2457405fa7ac6..84e3fceb726a0906fe114bbdd96b8c28514fcc42 100644 (file)
@@ -8,16 +8,12 @@
 
 #include "engraver.hh"
 #include "group-interface.hh"
-#include "item.hh"
-#include "event.hh"
-#include "spanner.hh"
 #include "stem.hh"
 #include "rhythmic-head.hh"
 #include "side-position-interface.hh"
 #include "staff-symbol-referencer.hh"
 #include "context.hh"
 
-
 /**
    Create line-spanner grobs for lines that connect note heads.
 
@@ -87,12 +83,11 @@ Note_head_line_engraver::process_acknowledged_grobs ()
         Should probably store follow_ in line_, and suicide at some
         later point */
       if (follow_)
-       line_ = make_spanner ("VoiceFollower");
+       line_ = make_spanner ("VoiceFollower", head_->self_scm ());
          
       line_->set_bound (LEFT, last_head_);
       line_->set_bound (RIGHT, head_);
       
-      announce_grob (line_, head_->self_scm ());
 
       follow_ = false;
     }
@@ -101,11 +96,7 @@ Note_head_line_engraver::process_acknowledged_grobs ()
 void
 Note_head_line_engraver::stop_translation_timestep ()
 {
-  if (line_)
-    {
-      typeset_grob (line_);
-      line_ = 0;
-    }
+  line_ = 0;
   if (head_)
     last_head_ = head_;
   head_ = 0;
@@ -114,7 +105,7 @@ Note_head_line_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION (Note_head_line_engraver,
+ADD_TRANSLATOR (Note_head_line_engraver,
 /* descr */       "Engrave a line between two note heads, for example a glissando.  If "
 " followVoice is set, staff switches also generate a line.",
 /* creats*/       "Glissando VoiceFollower",