2 duration.hh -- declare Duration
4 source file of the LilyPond music typesetter
6 (c) 1997--2007 Jan Nieuwenhuizen <janneke@gnu.org>
23 string to_string () const;
25 Duration compressed (Rational) const;
26 Rational get_length () const;
27 Rational factor () const { return factor_; }
28 int duration_log () const;
29 int dot_count () const;
31 static int compare (Duration const &, Duration const &);
33 DECLARE_SCHEME_CALLBACK (less_p, (SCM a, SCM b));
34 DECLARE_SIMPLE_SMOBS (Duration);
37 /// Logarithm of the base duration.
44 INSTANTIATE_COMPARE (Duration, Duration::compare);
45 DECLARE_UNSMOB (Duration, duration);