]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lyric-performer.cc
2003 -> 2004
[lilypond.git] / lily / lyric-performer.cc
index 415fc9ce4d0d29a39fdd4e4fd43a55b1c8e37d74..c0279b7cf997f67451eeb1c90d5c7c7f67e87558 100644 (file)
@@ -3,10 +3,10 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2002 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1997--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
-#include "musical-request.hh"
+#include "event.hh"
 #include "audio-item.hh"
 #include "lily-proto.hh"
 #include "performer.hh"
@@ -22,7 +22,7 @@ protected:
   virtual void create_audio_elements ();
 
 private:
-  Link_array<Lyric_req> lreqs_;
+  Link_array<Music> lreqs_;
   Audio_text* audio_;
 };
 
@@ -65,12 +65,12 @@ Lyric_performer::stop_translation_timestep ()
 bool
 Lyric_performer::try_music (Music* req)
 {
-  if (Lyric_req *lr = dynamic_cast <Lyric_req *> (req))
+  if (req->is_mus_type ("lyric-event"))
     {
-      lreqs_.push (lr);
+      lreqs_.push (req);
       return true;
     }
   return false;
 }
 
-ENTER_DESCRIPTION(Lyric_performer,"","","general-music","","","");
+ENTER_DESCRIPTION(Lyric_performer,"","","lyric-event","","","");