]> git.donarmstrong.com Git - lilypond.git/blob - hdr/time-description.hh
partial: 0.0.39-1.jcn
[lilypond.git] / hdr / time-description.hh
1 /*
2   moment.hh -- part of LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef tdes_HH
8 #define tdes_HH
9
10 #include "moment.hh"
11
12 /// full info on where we are
13 struct Time_description {
14     Moment when_;
15
16     /// if true, no bars needed, no reduction of whole_in_measure
17     bool cadenza_b_;
18     
19     /// current measure info
20     Moment whole_per_measure_;
21
22     /// where am i 
23     Moment whole_in_measure_;
24
25     /// how long is one beat?
26     Moment one_beat_;
27
28     /// idem
29     int bars_i_;
30
31     /* *************** */
32     void set_cadenza(bool);
33     void OK() const;
34     Time_description();
35     void add(Moment dt);
36     String str()const;
37     void print() const;
38     void setpartial(Moment p);
39     Moment barleft();
40     void set_meter(int,int);
41     static int compare (Time_description&, Time_description&);
42 };
43
44 #include "compare.hh"
45
46
47 instantiate_compare(Time_description&,Time_description::compare);
48
49 #endif // Time_description_HH
50