/*
note-performer.hh -- declare Note_performer
- (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
- Jan Nieuwenhuizen <jan@digicash.com>
+ (c) 1996--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ Jan Nieuwenhuizen <janneke@gnu.org>
*/
#ifndef NOTE_PERFORMER_HH
#include "performer.hh"
/**
+Convert reqs to audio notes.
*/
-
class Note_performer : public Performer {
public:
- NAME_MEMBERS();
-
- Note_performer();
- ~Note_performer();
+ VIRTUAL_COPY_CONS(Translator);
+
- virtual void process_requests();
- virtual bool /*do_*/try_request( Request *req_l ) ;
+ Note_performer();
protected:
- virtual void do_print() const;
+ virtual void do_process_music ();
+ virtual bool do_try_music (Music *req_l) ;
-#if 0
- virtual void /*do_*/process_requests();
- virtual void /*do_*/pre_move_processing();
- virtual void /*do_*/post_move_processing();
-#endif
+ virtual void do_pre_move_processing ();
+ virtual void process_acknowledged ();
+ Global_translator* global_translator_l ();
private:
- Melodic_req * note_req_l_;
-// Rhythmic_req * note_req_l_;
-
-// Melodic_req* current_l_;
-// Moment off_mom_;
-// Moment on_mom_;
+ Array<Note_req*> note_req_l_arr_;
+ Array<Audio_note*> note_p_arr_;
+ Array<Audio_note*> delayed_p_arr_;
};
#endif // NOTE_PERFORMER_HH