]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-performer.hh
release: 0.1.0
[lilypond.git] / lily / include / staff-performer.hh
1 /*
2   staff-performer.hh -- declare Staff_performer
3
4   (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
5                  Jan Nieuwenhuizen <jan@digicash.com>
6  */
7
8 #ifndef STAFF_PERFORMER_HH
9 #define STAFF_PERFORMER_HH
10
11 #include "performer-group-performer.hh"
12
13 class Staff_performer : public Performer_group_performer 
14 {
15 public:
16     DECLARE_MY_RUNTIME_TYPEINFO;
17
18     Staff_performer();
19     ~Staff_performer();
20
21     String instrument_str();
22
23 protected:
24     virtual void play_event( Midi_item* l );
25     virtual void do_removal_processing();
26     virtual void do_creation_processing();
27     // <ugh>
28     virtual void set_track( int& track_i_r );
29     virtual int get_track_i() const;
30     // </ugh>
31
32 private:
33     void header();
34
35     Moment midi_mom_;
36     Midi_track* midi_track_p_;
37
38     int track_i_;
39 };
40
41 #endif // STAFF_PERFORMER_HH