]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tempo-performer.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / tempo-performer.cc
index 43af310b30ebc68b9122cc529fc66ab6f8fe6a4b..9a70f9cdc4d78a4ceec4a45d1249b76587e03656 100644 (file)
@@ -3,7 +3,7 @@
 
   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"
@@ -22,7 +22,7 @@ protected:
 
   virtual bool try_music (Music *event);
   void stop_translation_timestep ();
-  virtual void create_audio_elements ();
+  void process_music ();
 
 private:
   Music *tempo_event_;
@@ -40,7 +40,7 @@ Tempo_performer::~Tempo_performer ()
 }
 
 void
-Tempo_performer::create_audio_elements ()
+Tempo_performer::process_music ()
 {
   if (tempo_event_)
     {
@@ -49,7 +49,7 @@ Tempo_performer::create_audio_elements ()
 
       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);