]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/score-performer.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / score-performer.hh
index b0b584e72a0bc937c3981502b0ac4f57b49f922a..55f31b11231b73546dd9aef65bbcc7f68ded45bc 100644 (file)
@@ -1,44 +1,47 @@
 /*
   score-performer.hh -- declare Score_performer
 
-  (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-                 Jan Nieuwenhuizen <jan@digicash.com>
- */
+  (c) 1996--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Jan Nieuwenhuizen <janneke@gnu.org>
+*/
 
 #ifndef SCORE_PERFORMER_HH
 #define SCORE_PERFORMER_HH
 
-#include "performer-group-performer.hh"
-#include "global-translator.hh"
+#include "moment.hh"
+#include "performer-group.hh"
 
 /**
-  Top level performer. Completely takes care of MIDI output
- */
-class Score_performer: 
-    public Performer_group_performer, public Global_translator 
+   Top level performer. Completely takes care of MIDI output
+*/
+class Score_performer : public Performer_group
 {
 public:
-    DECLARE_MY_RUNTIME_TYPEINFO;
-    Score_performer();
-    ~Score_performer();
+  VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Score_performer);
+  Performance *performance_;
 
-protected:
-    virtual Translator* ancestor_l(int l);
-    virtual int depth_i() const;
-
-    virtual void finish();
-    virtual void prepare(Moment mom);
-    virtual void process();
-    virtual void set_score(Score* score_l);
-    virtual void start();
-    virtual int get_tempo_i() const;
-    virtual void play(Audio_element* p);
+  ~Score_performer ();
+  Score_performer ();
 
+protected:
+  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 void derived_mark () const;
+  virtual void acknowledge_audio_elements ();
 private:
-    void header(Midi_stream&);
+  void header (Midi_stream &);
 
-    Moment now_mom_;
-    Audio_column* audio_column_l_;
+  Audio_column *audio_column_;
+  bool skipping_;
+  Moment skip_start_mom_;
+  Moment offset_mom_;
 };
 
 #endif // SCORE_PERFORMER_HH