X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fscore-performer.hh;h=e38f430c62ed679415addf4cb6f5020876d1225f;hb=9f3572d98bb948c9689cd1f75401a029451fa001;hp=929853bba0d59baffb51d1d69107c94b5bf5b693;hpb=04265f11d1f21416ccebd2dcaa1d903dc781b36e;p=lilypond.git diff --git a/lily/include/score-performer.hh b/lily/include/score-performer.hh index 929853bba0..e38f430c62 100644 --- a/lily/include/score-performer.hh +++ b/lily/include/score-performer.hh @@ -8,33 +8,31 @@ #ifndef SCORE_PERFORMER_HH #define SCORE_PERFORMER_HH -#include "moment.hh" #include "performer-group.hh" +#include "score-translator.hh" /** Top level performer. Completely takes care of MIDI output */ -class Score_performer : public Performer_group +class Score_performer : public Score_translator, + public virtual Performer_group { public: VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Score_performer); + ~Score_performer (); Performance *performance_; - ~Score_performer (); Score_performer (); - protected: - DECLARE_LISTENER (finish); - DECLARE_LISTENER (prepare); - DECLARE_LISTENER (one_time_step); - - /* Engraver_group_engraver interface */ - virtual void connect_to_context (Context *); - virtual void disconnect_from_context (); + virtual void prepare (Moment mom); + virtual void finish (); + virtual void one_time_step (); virtual void initialize (); virtual void announce_element (Audio_element_info); + virtual int get_tempo () const; + virtual void play_element (Audio_element *p); + virtual SCM get_output (); virtual void derived_mark () const; - virtual void acknowledge_audio_elements (); private: void header (Midi_stream &);