]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-performer.hh
release: 0.1.13
[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 /** Perform a staff. Individual notes should have their instrument
14   (staff-wide) set, so we override play()
15
16   */
17 class Staff_performer : public Performer_group_performer 
18 {
19 public:
20   TRANSLATOR_CLONE(Staff_performer);
21   DECLARE_MY_RUNTIME_TYPEINFO;
22
23   Staff_performer();
24   ~Staff_performer();
25
26   String instrument_str();
27
28 protected:
29   virtual void play (Audio_element* p);
30   virtual void do_removal_processing();
31   virtual void do_creation_processing();
32
33 private:
34   Audio_staff* audio_staff_p_;
35 };
36
37 #endif // STAFF_PERFORMER_HH