source file of the GNU LilyPond music typesetter
- (c) 1997--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1997--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "performer.hh"
protected:
virtual bool try_music (Music *event);
- PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
- virtual void create_audio_elements ();
+ void stop_translation_timestep ();
+ void process_music ();
private:
Music *tempo_event_;
}
void
-Tempo_performer::create_audio_elements ()
+Tempo_performer::process_music ()
{
if (tempo_event_)
{
Rational r = (d->get_length () / Moment (Rational (1, 4)) * Moment (scm_to_int (met))).main_part_;
- audio_ = new Audio_tempo (int (r));
+ audio_ = new Audio_tempo (r.to_int ());
Audio_element_info info (audio_, tempo_event_);
announce_element (info);
ADD_TRANSLATOR (Tempo_performer, "", "",
"metronome-change-event",
- "", "", "");
+ "", "");