]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lyric-performer.cc
Issue 4938 (2/3) Refactor handling of MIDI control changes
[lilypond.git] / lily / lyric-performer.cc
index 0ad69ae0536b2efa17d95663dc2f4e0c818704d7..6a25d62a3f99e44fd8fbff912e20b0e2e70e61d0 100644 (file)
@@ -30,7 +30,7 @@ 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_;
@@ -67,13 +67,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 */
                 "",