lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lily 2.7.7 and MIDI


From: Michael Welsh Duggan
Subject: Re: Lily 2.7.7 and MIDI
Date: Sun, 28 Aug 2005 12:34:16 -0400
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Here is an additional patch needed for proper tempi:

Index: lily/midi-def.cc
===================================================================
RCS file: /cvsroot/lilypond/lilypond/lily/midi-def.cc,v
retrieving revision 1.47
diff -u -p -u -r1.47 midi-def.cc
--- lily/midi-def.cc    13 Aug 2005 21:35:22 -0000      1.47
+++ lily/midi-def.cc    28 Aug 2005 16:30:02 -0000
@@ -30,8 +30,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
-- 
Michael Welsh Duggan
(address@hidden)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]