X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fscore-performer.hh;h=826abeec95b8c0ec8f314e6e6903da3182508637;hb=74b008a3d5f390a0429dd8fab7dd20f2704e826b;hp=ca77b9a7f92defa7d3c3b0f8d3a3fc73150f6e4a;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/lily/include/score-performer.hh b/lily/include/score-performer.hh index ca77b9a7f9..826abeec95 100644 --- a/lily/include/score-performer.hh +++ b/lily/include/score-performer.hh @@ -1,42 +1,47 @@ /* score-performer.hh -- declare Score_performer - (c) 1996--2006 Han-Wen Nienhuys + (c) 1996--2007 Han-Wen Nienhuys Jan Nieuwenhuizen */ #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 Score_translator, - public virtual Performer_group +class Score_performer : public Performer_group { public: VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Score_performer); - ~Score_performer (); Performance *performance_; + ~Score_performer (); Score_performer (); + protected: - virtual void prepare (Moment mom); - virtual void finish (); - virtual void one_time_step (); + 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 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 &); Audio_column *audio_column_; + bool skipping_; + Moment skip_start_mom_; + Moment offset_mom_; }; #endif // SCORE_PERFORMER_HH