]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-def.cc
release: 0.1.42
[lilypond.git] / lily / midi-def.cc
index e7da659d1982c1270d1beea7466ae6a78a961b8a..0e85a4849fbdf75ff4169f920b187f22d08f7f11 100644 (file)
@@ -53,7 +53,7 @@ void
 Midi_def::set_tempo (Moment one_beat_mom, int beats_per_minute_i)
 {
   Moment beats_per_second = Moment (beats_per_minute_i) / Moment (60);
-  whole_in_seconds_mom_ = 1/(beats_per_second * one_beat_mom);
+  whole_in_seconds_mom_ = Moment(1)/Moment(beats_per_second * one_beat_mom);
 }
 
 void