lilypond-0.1.27
[lilypond.git] / hdr / timedescription.hh
blob7e366ec4c2b12ca86fd8e5f69c79328c6d0dfe46
1 /*
2 moment.hh -- part of LilyPond
4 (c) 1996,97 Han-Wen Nienhuys
5 */
7 #ifndef tdes_HH
8 #define tdes_HH
10 #include "moment.hh"
12 /// full info on where we are
13 struct Time_description {
14 Moment when_;
16 /// if true, no bars needed, no reduction of whole_in_measure
17 bool cadenza_b_;
19 /// current measure info
20 Moment whole_per_measure_;
22 /// where am i
23 Moment whole_in_measure_;
25 /// how long is one beat?
26 Moment one_beat_;
28 /// idem
29 int bars_i_;
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&);
44 #include "compare.hh"
47 instantiate_compare(Time_description&,Time_description::compare);
49 #endif // Time_description_HH