]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/score-performer.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / score-performer.hh
index ecd7b1101c73635209afbd56aeefdd28ffb02e9e..7a1cb628a68ee2c1bf6dc4e4643894ff5fd3d14b 100644 (file)
@@ -1,38 +1,60 @@
 /*
-  score-performer.hh -- declare Score_performer
+  This file is part of LilyPond, the GNU music typesetter.
 
-  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-                 Jan Nieuwenhuizen <janneke@gnu.org>
- */
+  Copyright (C) 1996--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  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
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
+*/
 
 #ifndef SCORE_PERFORMER_HH
 #define SCORE_PERFORMER_HH
 
-#include "performer-group-performer.hh"
-#include "score-translator.hh"
+#include "moment.hh"
+#include "performer-group.hh"
 
 /**
-  Top level performer. Completely takes care of MIDI output
- */
-class Score_performer : public Score_translator, public virtual Performer_group_performer
+   Top level performer. Completely takes care of MIDI output
+*/
+class Score_performer : public Performer_group
 {
 public:
-  TRANSLATOR_DECLARATIONS(Score_performer);
-  ~Score_performer ();
+  VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Score_performer);
   Performance *performance_;
 
+  ~Score_performer ();
+  Score_performer ();
+
 protected:
-  virtual void prepare (Moment mom);
-  virtual void one_time_step ();
+  DECLARE_LISTENER (finish);
+  DECLARE_LISTENER (prepare);
+  DECLARE_LISTENER (one_time_step);
+
+  /* Engraver_group_engraver interface */
+  virtual void connect_to_context (Context *);
+  virtual void disconnect_from_context ();
   virtual void initialize ();
   virtual void announce_element (Audio_element_info);
-  virtual int get_tempo () const;
-  virtual void play_element (Audio_element* p);
-  virtual Music_output *get_output ();
+  virtual void derived_mark () const;
+  virtual void acknowledge_audio_elements ();
 private:
-  void header (Midi_stream&);
+  void header (Midi_stream &);
 
-  Audio_column* audio_column_;
+  Audio_column *audio_column_;
+  bool skipping_;
+  Moment skip_start_mom_;
+  Moment offset_mom_;
 };
 
 #endif // SCORE_PERFORMER_HH