]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/score-performer.hh
* lily/context.cc (Context): take key argument in ctor.
[lilypond.git] / lily / include / score-performer.hh
index 980bbaa2e38dea4e12ecbe47a9bf3d19ccddfcdd..843b65679702ed1b0034d1f2fef4c974e9e4794f 100644 (file)
@@ -1,36 +1,39 @@
 /*
   score-performer.hh -- declare Score_performer
 
-  (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-                 Jan Nieuwenhuizen <jan@digicash.com>
+  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+                 Jan Nieuwenhuizen <janneke@gnu.org>
  */
 
 #ifndef SCORE_PERFORMER_HH
 #define SCORE_PERFORMER_HH
 
 #include "performer-group-performer.hh"
-#include "global-translator.hh"
+#include "score-translator.hh"
 
-class Score_performer: 
-    public Performer_group_performer, public Global_translator 
+/**
+  Top level performer. Completely takes care of MIDI output
+ */
+class Score_performer : public Score_translator, public virtual Performer_group_performer
 {
 public:
-    NAME_MEMBERS();
-    Score_performer();
-    ~Score_performer();
-
+  TRANSLATOR_DECLARATIONS(Score_performer);
+  ~Score_performer ();
+  Performance *performance_;
+  
 protected:
-    virtual Translator* ancestor_l( int l );
-    virtual int depth_i() const;
-
-    virtual void play_event( Midi_item* l );
-    virtual void prepare( Moment mom );
-    virtual void process();
-
+  virtual void prepare (Moment mom);
+  virtual void finish ();
+  virtual void one_time_step ();
+  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 ();
 private:
-    Midi_stream* midi_stream_p_;
-    Moment prev_mom_;
-    Moment now_mom_;
+  void header (Midi_stream&);
+
+  Audio_column* audio_column_;
 };
 
 #endif // SCORE_PERFORMER_HH