]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie-performer.cc
release: 1.3.110
[lilypond.git] / lily / tie-performer.cc
index c25e51ea13ba2c9e4d8db7f7a2d68aa0618d9254..fca448b6227ee89149b7cbc6dde43156fc9065fd 100644 (file)
@@ -40,7 +40,7 @@ class Tie_performer : public Performer
 {
 public:
   VIRTUAL_COPY_CONS(Translator);
-
+  Tie_performer ();
 private:
   bool done_;
   PQueue<CNote_melodic_tuple> past_notes_pq_;
@@ -50,17 +50,44 @@ private:
   Link_array<Audio_tie> tie_p_arr_;
   
 protected:
-  virtual void do_post_move_processing ();
-  virtual void do_pre_move_processing ();
-  virtual void acknowledge_element (Audio_element_info);
-  virtual bool do_try_music (Music*);
-  virtual void process_acknowledged ();
+  virtual void initialize ();
+  virtual void start_translation_timestep ();
+  virtual void stop_translation_timestep ();
+  virtual void acknowledge_grob (Audio_element_info);
+  virtual bool try_music (Music*);
+  virtual void create_grobs ();
 };
 
+
+Tie_performer::Tie_performer ()
+{
+  req_l_ = 0;
+  done_ = false;
+}
+
 ADD_THIS_TRANSLATOR (Tie_performer);
 
+
+#if 0
+Tie_performer::Tie_performer ()
+{
+  // URG
+  // if we don't do this, lily dumps core
+  // which means that ``initialize'' and
+  // ``start_translation_timestep'' did not happen?!
+  initialize ();
+}
+#endif
+
+void
+Tie_performer::initialize ()
+{
+  req_l_ = 0;
+}
+
+
 bool
-Tie_performer::do_try_music (Music *m)
+Tie_performer::try_music (Music *m)
 {
   if (!req_l_)
     {
@@ -74,7 +101,7 @@ Tie_performer::do_try_music (Music *m)
 }
 
 void
-Tie_performer::acknowledge_element (Audio_element_info i)
+Tie_performer::acknowledge_grob (Audio_element_info i)
 {
   if (Audio_note *nh = dynamic_cast<Audio_note *> (i.elem_l_))
     {
@@ -86,7 +113,7 @@ Tie_performer::acknowledge_element (Audio_element_info i)
 }
 
 void
-Tie_performer::process_acknowledged ()
+Tie_performer::create_grobs ()
 {
   if (req_l_ && ! done_)
     {
@@ -149,7 +176,7 @@ Tie_performer::process_acknowledged ()
 }
 
 void
-Tie_performer::do_pre_move_processing ()
+Tie_performer::stop_translation_timestep ()
 {
   for (int i=0; i < now_notes_.size (); i++)
     {
@@ -166,7 +193,7 @@ Tie_performer::do_pre_move_processing ()
 }
 
 void
-Tie_performer::do_post_move_processing ()
+Tie_performer::start_translation_timestep ()
 {
   req_l_ =0;
   done_ = false;