]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie-performer.cc
release: 1.3.110
[lilypond.git] / lily / tie-performer.cc
index 6edbf83333dbd9bc4d3f10e89de9080c0db23889..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,6 +50,7 @@ private:
   Link_array<Audio_tie> tie_p_arr_;
   
 protected:
+  virtual void initialize ();
   virtual void start_translation_timestep ();
   virtual void stop_translation_timestep ();
   virtual void acknowledge_grob (Audio_element_info);
@@ -57,8 +58,34 @@ protected:
   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::try_music (Music *m)
 {