]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/score-performer.hh
``slikken kreng''
[lilypond.git] / lily / include / score-performer.hh
index 769edecec772bc96f08318112e60f503d6ce9621..1c7f73404bd52e53c3602279ed674751abff95a0 100644 (file)
@@ -1,8 +1,8 @@
 /*
   score-performer.hh -- declare Score_performer
 
-  (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-                 Jan Nieuwenhuizen <jan@digicash.com>
+  (c) 1996--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+                 Jan Nieuwenhuizen <janneke@gnu.org>
  */
 
 #ifndef SCORE_PERFORMER_HH
 #include "performer-group-performer.hh"
 #include "global-translator.hh"
 
+/**
+  Top level performer. Completely takes care of MIDI output
+ */
 class Score_performer: 
-    public Performer_group_performer, public Global_translator 
+  public Performer_group_performer, public Global_translator 
 {
 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 finish();
-    virtual Moment get_mom() const;
-    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_event(Midi_item*);
-private:
-    void header(Midi_stream&);
+  virtual void finish ();
+  virtual void prepare (Moment mom);
+  virtual void one_time_step ();
+  virtual void start ();
+  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 ();
 
-    Midi_def* midi_l_;
-
-    Moment prev_mom_;
-    Moment now_mom_;
+private:
+  void header (Midi_stream&);
 
-    Link_array<Midi_item> midi_item_p_arr_;
+  Audio_column* audio_column_;
 };
 
 #endif // SCORE_PERFORMER_HH