X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftempo-performer.cc;h=c58ba137f69bbc575b73acd0fe6a56717ecb4d2c;hb=a7f82e4dc22fc6219a9fe0f6874f8c91e3f31f24;hp=540db7dcacdfc6d8d23a75b737744ea9b18e8662;hpb=bdf4ab13203502e7ec7cf9cf5896527643a07c1f;p=lilypond.git diff --git a/lily/tempo-performer.cc b/lily/tempo-performer.cc index 540db7dcac..c58ba137f6 100644 --- a/lily/tempo-performer.cc +++ b/lily/tempo-performer.cc @@ -6,9 +6,12 @@ (c) 1997--2005 Jan Nieuwenhuizen */ -#include "audio-item.hh" #include "performer.hh" +#include "audio-item.hh" +#include "music.hh" +#include "duration.hh" + class Tempo_performer : public Performer { public: @@ -18,7 +21,7 @@ public: protected: virtual bool try_music (Music *req); - virtual void stop_translation_timestep (); + PRECOMPUTED_VIRTUAL void stop_translation_timestep (); virtual void create_audio_elements (); private: @@ -41,7 +44,6 @@ Tempo_performer::create_audio_elements () { if (tempo_req_) { - SCM met = tempo_req_->get_property ("metronome-count"); Duration *d = unsmob_duration (tempo_req_->get_property ("tempo-unit")); @@ -75,6 +77,8 @@ Tempo_performer::try_music (Music *req) return true; } +#include "translator.icc" + ADD_TRANSLATOR (Tempo_performer, "", "", "metronome-change-event", "", "", "");