lilypond-1.3.16
[lilypond.git] / lily / include / duration.hh
blob0423d47353197a327e9c89618fc6d84e835b8799
1 /*
2 duration.hh -- declare Duration
4 source file of the LilyPond music typesetter
6 (c) 1997--1999 Jan Nieuwenhuizen <janneke@gnu.org>
8 */
10 #ifndef DURATION_HH
11 #define DURATION_HH
13 #include "fproto.hh"
14 #include "rational.hh"
17 /**
18 A musical duration.
20 struct Duration {
21 Duration ();
22 /// is the "plet factor" of this note != 1 ?
23 bool plet_b ();
24 String str () const;
25 void set_plet (int,int );
26 void compress (Rational);
27 Rational length_mom () const ;
29 /// Logarithm of the base duration.
30 int durlog_i_;
31 int dots_i_;
32 int tuplet_iso_i_; // 2/3; 2 is not duration, maar of count!
33 int tuplet_type_i_;
36 #endif // DURATION_HH