]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/score-performer.hh
release: 0.1.13
[lilypond.git] / lily / include / score-performer.hh
1 /*
2   score-performer.hh -- declare Score_performer
3
4   (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
5                  Jan Nieuwenhuizen <jan@digicash.com>
6  */
7
8 #ifndef SCORE_PERFORMER_HH
9 #define SCORE_PERFORMER_HH
10
11 #include "performer-group-performer.hh"
12 #include "global-translator.hh"
13
14 /**
15   Top level performer. Completely takes care of MIDI output
16  */
17 class Score_performer: 
18   public Performer_group_performer, public Global_translator 
19 {
20 public:
21   TRANSLATOR_CLONE(Score_performer);
22   DECLARE_MY_RUNTIME_TYPEINFO;
23   Score_performer();
24   ~Score_performer();
25   Performance *performance_p_;
26
27 protected:
28   virtual void finish();
29   virtual void prepare (Moment mom);
30   virtual void process();
31   virtual void start();
32   virtual void add_processing ();
33   virtual int get_tempo_i() const;
34   virtual void play (Audio_element* p);
35   virtual Music_output *get_output_p ();
36 private:
37   void header (Midi_stream&);
38
39   Audio_column* audio_column_l_;
40 };
41
42 #endif // SCORE_PERFORMER_HH