]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.7
authorfred <fred>
Mon, 4 Nov 1996 14:01:59 +0000 (14:01 +0000)
committerfred <fred>
Mon, 4 Nov 1996 14:01:59 +0000 (14:01 +0000)
rhythmstaff.hh
spanner.cc [new file with mode: 0644]
stem.hh [new file with mode: 0644]
template2.cc

index 7fe7c6a887ee7173d7431ba1995e365b3d432d16..130f6483b9b6ccce1516270625536a170631e42f 100644 (file)
@@ -21,6 +21,7 @@ struct Rhythmic_staff : public Simple_staff
 /// this does the typesetting
 struct Rhythmic_column : public Simple_column {
     virtual void typeset_req(Request *rq);
+    virtual void typeset_stem(Stem_req *rq);
     virtual void typeset_command(Command *, int brs);
   
 
diff --git a/spanner.cc b/spanner.cc
new file mode 100644 (file)
index 0000000..f9eb653
--- /dev/null
@@ -0,0 +1,32 @@
+
+#include "spanner.hh"
+#include "line.hh"
+
+#include "symbol.hh"
+#include "molecule.hh"
+#include "pcol.hh"
+
+String
+Spanner::TeXstring() const
+{
+    assert(right->line);
+    Real w = left->hpos - right->hpos;
+    return strets->eval(w).tex;
+}
+
+Spanner *
+Spanner::broken_at(const PCol *c1, const PCol *c2) const
+{
+    Spanner *sp = new Spanner(*this);
+    sp->left = c1;
+    sp->right = c2;
+    return sp;
+}
+
+Spanner::Spanner()
+{
+    pstaff_=0;
+    strets=0;
+    left = right = 0;
+}
+
diff --git a/stem.hh b/stem.hh
new file mode 100644 (file)
index 0000000..039bc51
--- /dev/null
+++ b/stem.hh
@@ -0,0 +1,31 @@
+/*
+  stem.hh -- part of LilyPond
+
+  (c) 1996 Han-Wen Nienhuys
+*/
+
+#ifndef STEM_HH
+#define STEM_HH
+#include "item.hh"
+
+struct Stem : public Item {
+    // heads the stem encompasses (positions)
+    int minnote, maxnote;
+
+    int staff_center;
+
+    // extent of the stem (positions)
+    int bot, top;
+    
+    // flagtype? 4 none, 8 8th flag, 0 = beam.
+    int flag;
+    
+        
+    /****************/
+    void brew_molecole();
+    void calculate();
+    Stem(int center);
+    void print() const;
+    Interval width() const;    
+};
+#endif
index 1c54a2cb9490072fddf499c63a7dac2ab5378bef..5e0431c42abe1ab7d64eec7dcc932bf6494b2276 100644 (file)
@@ -5,6 +5,7 @@
 #include "staff.hh"
 #include "sccol.hh"
 #include "stcol.hh"
+#include "spanner.hh"
 
 #include "list.cc"
 #include "plist.cc"