]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.19
authorfred <fred>
Fri, 20 Dec 1996 22:09:28 +0000 (22:09 +0000)
committerfred <fred>
Fri, 20 Dec 1996 22:09:28 +0000 (22:09 +0000)
hdr/grouping.hh

index 21a4b4b70faabdd9311112ddb40f97ae503a83fa..da1ddd2ce34d03ca7ce632dcf2c9c04903dbcfd0 100644 (file)
 #include "vray.hh"
 
 
-
+/// data structure which represents rhythmic units 
 struct Rhythmic_grouping {    
-    svec<Real> divisions;
+    
     svec<Rhythmic_grouping*> children;
-
+    Interval *interval_;
+    
     /****************/
 
-    svec<Real> interior();
-    Rhythmic_grouping partial_grouping(Interval t);
+    svec<Interval> intervals();
+    Interval interval()const;
     Real length() const;
-    Interval time() const;
-    Rhythmic_grouping(Interval);
-    Rhythmic_grouping();
-    Rhythmic_grouping(svec<Real>);
-    Rhythmic_grouping(Rhythmic_grouping const&);
+    void intersect(Interval);
     
+    void operator=(Rhythmic_grouping const&);
+    Rhythmic_grouping(Rhythmic_grouping const&);
+    Rhythmic_grouping(Interval, int n=1);
+    Rhythmic_grouping();
+    Rhythmic_grouping(svec<Rhythmic_grouping*>);
+    ~Rhythmic_grouping();
+
+    void add_child(Real start, Real len);
+
     void split(Rhythmic_grouping r);
-    void split(svec<Real>);
-    void intersect(Interval);
+    void split(svec<Interval>);
     void split(int n);
+
     void print() const;
     void OK() const;
-    ~Rhythmic_grouping();
+
+    svec<int> generate_beams(svec<int>, int&);
+
+private:
+    void junk();
+    void copy(Rhythmic_grouping const&);
 };
+/**
+  this is a tree. It groupes notes according to rules
+  
+ */
+
 #endif