]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-def.cc
* The grand 2005-2006 replace.
[lilypond.git] / lily / midi-def.cc
index e7c3539f16c7d0c2a2962910bdd62cc7c99bcb07..c3b80dbeae332a60a1a71eeb5c51e498104aca39 100644 (file)
@@ -3,10 +3,9 @@
 
   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 <math.h>
 
 #include "misc.hh"
 #include "output-def.hh"
@@ -30,8 +29,8 @@ get_tempo (Output_def *def,
   else
     wholes_per_min /= *w;
 
-  int beats_per_min = int ((wholes_per_min / one_beat_mom).main_part_);
-  return int (beats_per_min);
+  Rational beats_per_min =  (wholes_per_min / one_beat_mom).main_part_;
+  return beats_per_min.to_int ();
 }
 
 void