]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.8
authorfred <fred>
Tue, 5 Nov 1996 20:16:35 +0000 (20:16 +0000)
committerfred <fred>
Tue, 5 Nov 1996 20:16:35 +0000 (20:16 +0000)
pscore.cc
simpleprint.cc

index e1c8a7204a542a8843da392e7a650d6af35bee9a..3f6f289d2685b460dac318e0bfb6e1637e75a7f1 100644 (file)
--- a/pscore.cc
+++ b/pscore.cc
@@ -50,6 +50,7 @@ PScore::typeset_item(Item *i, PCol *c, PStaff *s, int breakstat)
     its.bottom().add(i);
     s->add(i);
     c->add(i);
+    i->preprocess();
 }
 
 void
@@ -154,3 +155,20 @@ PScore::print() const
 #endif 
 }
 
+void
+PScore::preprocess()
+{
+#if 0
+    for (PCursor<Item*> ic(its); ic.ok(); ic++){
+       ic->preprocess();
+    }
+#endif 
+}
+
+void
+PScore::postprocess()
+{
+    for (PCursor<Item*> ic(its); ic.ok(); ic++){
+       ic->postprocess();
+    }
+}
index b8f02c57987a19dc5fd450a41d1a068e259b7976..b069978dce169219b494f5628fe56a12f0f8bddf 100644 (file)
@@ -9,12 +9,10 @@
 Molecule *
 Simple_column::create_req_mol(Request *rq)
 {
+    assert(rq->rest());
     Symbol s;
     int dots=0;
-
-    if (rq->note())
-       s = staff_->paper()->lookup_->ball(rq->note()->balltype);
-    else if (rq->rest())
+    if (rq->rest())
        s = staff_->paper()->lookup_->rest(rq->rest()->balltype);
 
     if (rq->rhythmic())
@@ -30,6 +28,7 @@ Simple_column::create_req_mol(Request *rq)
     }
     return m;
 }
+
 Molecule *
 Simple_column::create_command_mol(Command *com)
 {