]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/tempo-performer.cc (process_music): idem.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 28 Aug 2005 23:12:13 +0000 (23:12 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 28 Aug 2005 23:12:13 +0000 (23:12 +0000)
* lily/midi-def.cc (get_tempo): Rational to int conversion bug.

ChangeLog
lily/midi-def.cc
lily/tempo-performer.cc
scm/define-grobs.scm

index eec9d4fb7f3504b845a20e9901d53dd4ee59dc0a..5ed592e0dd928f6b30aa83773d86bf3ad3201d82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-29  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/tempo-performer.cc (process_music): idem.
+
+       * lily/midi-def.cc (get_tempo): Rational to int conversion bug.
+
 2005-08-27  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * Documentation/user/advanced-notation.itely (Text markup): not a
@@ -54,7 +60,7 @@
        * scm/define-markup-commands.scm (wordwrap-string): use
        text-direction
        (wordwrap-stencils): idem.
-       (line): idem..
+       (line): idem.
        (fill-line): idem.
        (wordwrap-stencils): translate last line to right for
        text-direction = LEFT.
index e7c3539f16c7d0c2a2962910bdd62cc7c99bcb07..0905c4c2f742d242dc419944c299d64c9b143623 100644 (file)
@@ -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
index 55cc6f877d213a3697da44b736ec329c621aa96b..8919805e3a3f14bca3bb096746bdf90817024220 100644 (file)
@@ -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);
index e20ee9fdb06aa369ff054d134cf87384d083e18d..dd9f7e1db9888f14e33db2f11bc878a57ecf4783 100644 (file)
      . (
        (self-alignment-X . 0)
        (break-visibility . ,begin-of-line-visible)
-       (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
+       (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
+                              ,Self_alignment_interface::aligned_on_self))
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (print-function . ,Text_interface::print)