]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/duration.cc
release: 1.3.0
[lilypond.git] / lib / duration.cc
index f65348ae6daa2a199124f5e49867bf42bf7ef337..b2a5f84643dd36cdec33b1b4675dc40cf597afd6 100644 (file)
@@ -3,17 +3,20 @@
 
   source file of the LilyPond music typesetter
 
-  (c)  1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c)  1997--1999 Jan Nieuwenhuizen <janneke@gnu.org>
            Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+
+  UGH. Duration is broken.
 */
 
 #include <assert.h>
+
 #include "proto.hh"
-#include "plist.hh"
 #include "string.hh"
 #include "source-file.hh"
 #include "source.hh"
-#include "moment.hh"
+#include "rational.hh"
 #include "duration.hh"
 #include "duration-convert.hh"
 #include "duration-iter.hh"
@@ -39,16 +42,14 @@ Duration::duration_type_b (int t)
 }
 
 void
-Duration::compress (Moment m)
+Duration::compress (Rational m)
 {
   plet_.iso_i_ *= m.num_i ();
   plet_.type_i_ *= m.den_i (); 
 }
 
-// ugh, what's this?
-// i should be called "mom ()", ... or at least "length_mom ()"
-Moment
-Duration::length () const
+Rational
+Duration::length_mom () const
 {
   return Duration_convert::dur2_mom (*this);
 }