]> 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 55cc6f877d213a3697da44b736ec329c621aa96b..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"
@@ -49,7 +49,7 @@ Tempo_performer::process_music ()
 
       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);