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