]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lyric-performer.cc
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / lily / lyric-performer.cc
index 8d76a6e107b821aa854d90a24c7a8761eefef4ce..9ba25c5bf1f1e6c839c4a7d05b319ba8a40251be 100644 (file)
@@ -22,8 +22,6 @@
 #include "stream-event.hh"
 #include "translator.icc"
 
-using std::vector;
-
 class Lyric_performer : public Performer
 {
 public:
@@ -32,13 +30,14 @@ protected:
 
   void stop_translation_timestep ();
   void process_music ();
-  DECLARE_TRANSLATOR_LISTENER (lyric);
+  void listen_lyric (Stream_event *);
 private:
   vector<Stream_event *> events_;
   Audio_text *audio_;
 };
 
-Lyric_performer::Lyric_performer ()
+Lyric_performer::Lyric_performer (Context *c)
+  : Performer (c)
 {
   audio_ = 0;
 }
@@ -69,13 +68,18 @@ Lyric_performer::stop_translation_timestep ()
   events_.clear ();
 }
 
-IMPLEMENT_TRANSLATOR_LISTENER (Lyric_performer, lyric);
 void
 Lyric_performer::listen_lyric (Stream_event *event)
 {
   events_.push_back (event);
 }
 
+void
+Lyric_performer::boot ()
+{
+  ADD_LISTENER (Lyric_performer, lyric);
+}
+
 ADD_TRANSLATOR (Lyric_performer,
                 /* doc */
                 "",