]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.23
authorfred <fred>
Sun, 24 Mar 2002 19:28:11 +0000 (19:28 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:28:11 +0000 (19:28 +0000)
hdr/score.hh
hdr/timedescription.hh

index f58367c30ecfad4b5ff229590ec7c4f440cc0a75..152e578493ca4c2ac12b7970f44eece2316a6931 100644 (file)
@@ -4,6 +4,7 @@
 #include "proto.hh"
 #include "plist.hh"
 #include "moment.hh"
+#include "assoc.hh"
 
 /// the total music def of one movement
 struct Score {
@@ -15,13 +16,17 @@ struct Score {
     IPointerList<Score_column*> cols_;
     PScore *pscore_p_;
 
+    String define_spot_str_;
+    
+    Assoc<String, Moment> markers_assoc_;
     /****************************************************************/
 
     /// construction
     Score(Paperdef*);
     ~Score();    
-    void add(Staff*);        
+    void add(Staff*);
 
+    void add_marks(Array<String>, Array<Moment>);
     /// do everything except outputting to file
     void process();
     
@@ -37,9 +42,10 @@ struct Score {
     PCursor<Score_column *> find_col(Moment,bool);
     /// when does the last *musical* element finish?
     Moment last() const;
-    
+
 private:
     Score(Score const&){}
+    ///
     void do_cols();
     /**
       make the pcol_l_ fields of each Score_column point to the correct PCol,
index 2194ee0a16641ac93be9864fe126c12fc9c8ba6a..5fb77497938b5e4de71b779b42c3646b15b6d83b 100644 (file)
@@ -1,7 +1,7 @@
 /*
   moment.hh -- part of LilyPond
 
-  (c) 1996 Han-Wen Nienhuys
+  (c) 1996,97 Han-Wen Nienhuys
 */
 
 #ifndef tdes_HH
 #include "real.hh"
 #include "moment.hh"
 
+/// full info on where we are
 struct Time_description {
-    Rational when;
+    Moment when;
+
+    /// if true, no bars needed, no reduction of whole_in_measure
+    bool cadenza_b_;
+    
     /// current measure info
-    Rational whole_per_measure;
+    Moment whole_per_measure;
 
     /// where am i 
-    Rational whole_in_measure;
+    Moment whole_in_measure;
 
     /// how long is one beat?
-    Rational one_beat;
+    Moment one_beat;
 
     /// idem
     int bars;
+
     /****************/
+    void set_cadenza(bool);
     void OK() const;
-    Time_description(Rational, const Time_description*);
+    Time_description(Moment, const Time_description*);
     String str()const;
     void print() const;
-    void setpartial(Rational p);
-    Rational barleft();
+    void setpartial(Moment p);
+    Moment barleft();
     void set_meter(int,int);
     static int compare (Time_description&, Time_description&);
 };