2 duration.hh -- declare Duration
4 source file of the LilyPond music typesetter
6 (c) 1997--2002 Jan Nieuwenhuizen <janneke@gnu.org>
13 #include "flower-proto.hh"
25 String to_string () const;
27 Duration compressed (Rational) const;
28 Rational get_length () const ;
29 Rational factor () const { return factor_; }
30 int duration_log ()const;
31 int dot_count () const;
33 static int compare (Duration const&, Duration const&);
35 SCM smobbed_copy () const;
36 DECLARE_SCHEME_CALLBACK (less_p, (SCM a, SCM b));
37 DECLARE_SIMPLE_SMOBS (Duration,);
40 /// Logarithm of the base duration.
48 INSTANTIATE_COMPARE (Duration, Duration::compare);
49 DECLARE_UNSMOB (Duration, duration);