]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/beam-performer.cc
Imported Upstream version 2.19.45
[lilypond.git] / lily / beam-performer.cc
index d723d7a81c864369d2b4272d90620294f74fc31a..0970e8b5e74831d5767b2e8367f7d00eb8c55fff 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1996--2012 Jan Nieuwenhuizen <janneke@gnu.org>
+  Copyright (C) 1996--2015 Jan Nieuwenhuizen <janneke@gnu.org>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ protected:
   void start_translation_timestep ();
   void process_music ();
   void set_melisma (bool);
-  DECLARE_TRANSLATOR_LISTENER (beam);
+  void listen_beam (Stream_event *);
 private:
   Stream_event *start_ev_;
   Stream_event *now_stop_ev_;
@@ -80,7 +80,6 @@ Beam_performer::start_translation_timestep ()
   now_stop_ev_ = 0;
 }
 
-IMPLEMENT_TRANSLATOR_LISTENER (Beam_performer, beam);
 void
 Beam_performer::listen_beam (Stream_event *ev)
 {
@@ -92,6 +91,12 @@ Beam_performer::listen_beam (Stream_event *ev)
     now_stop_ev_ = ev;
 }
 
+void
+Beam_performer::boot ()
+{
+  ADD_LISTENER (Beam_performer, beam);
+}
+
 ADD_TRANSLATOR (Beam_performer,
                 /* doc */
                 "",