source file of the LilyPond music typesetter
- (c) 1997--1998 Jan Nieuwenhuizen <jan@digicash.com>
- Han-Wen Nienhuys <hanwen@stack.nl>
+ (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"
return t == Duration_convert::type2_i (Duration_convert::i2_type (t));
}
-// ugh, what's this?
-// i should be called "mom ()", ... or at least "length_mom ()"
+void
+Duration::compress (Moment m)
+{
+ plet_.iso_i_ *= m.num_i ();
+ plet_.type_i_ *= m.den_i ();
+}
+
Moment
-Duration::length () const
+Duration::length_mom () const
{
return Duration_convert::dur2_mom (*this);
}
{
return !plet_.unit_b ();
}
+