]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-performer.hh
patch::: 0.0.73pre.jcn1: epsilon performance
[lilypond.git] / lily / include / note-performer.hh
1 /*
2   note-performer.hh -- declare Note_performer
3
4   (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
5                  Jan Nieuwenhuizen <jan@digicash.com>
6  */
7
8 #ifndef NOTE_PERFORMER_HH
9 #define NOTE_PERFORMER_HH
10
11 #include "performer.hh"
12
13 class Note_performer : public Performer {
14     Melodic_req* current_l_;
15     Moment off_mom_;
16     Moment on_mom_;
17
18 public:
19     virtual void process_request() {
20         if ( when() == off_mom_ )
21             play_event( Note_event( current_l_->pitch() ) );
22 };
23
24 #endif // NOTE_PERFORMER_HH