]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.6
authorfred <fred>
Sat, 2 Nov 1996 08:57:23 +0000 (08:57 +0000)
committerfred <fred>
Sat, 2 Nov 1996 08:57:23 +0000 (08:57 +0000)
simplestaff.hh [new file with mode: 0644]

diff --git a/simplestaff.hh b/simplestaff.hh
new file mode 100644 (file)
index 0000000..e2efafe
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+  simplestaff.hh -- part of LilyPond
+
+  (c) 1996 Han-Wen Nienhuys
+*/
+
+#ifndef SIMPLESTAFF_HH
+#define SIMPLESTAFF_HH
+
+#include "stcol.hh"
+#include "staff.hh"
+/*
+   mega-stupido staffs and cols: they do notes one at each moment.   
+   */
+
+struct Simple_staff;
+
+/// column of Simple_staff: store one request
+struct Simple_column : Staff_column {
+
+    Request *the_note;
+    Simple_staff* staff_;
+
+    /****************/
+    
+    virtual void typeset_req(Request *rq)=0;
+    virtual void typeset_command(Command *, int brs)=0;
+    virtual void typeset_item(Item *, int=1);
+
+    Item *create_command_item(Command *com);
+    Item *create_req_item(Request *rq);
+    void take_request(Request *rq);
+    
+    virtual void process_commands( );
+    virtual void process_requests();
+
+    Simple_column(Score_column*s,Simple_staff*rs);
+};
+
+
+/// Simple  staff: one note at a time
+struct Simple_staff : Staff {
+    /// indirection to the PStaff.
+    PStaff *theline;
+
+    /****************/
+    virtual void set_output(PScore *);
+
+    void process_commands( PCursor<Command*> &where);
+    void grant_requests();
+//    virtual Staff*clone()const;
+
+    Simple_staff();
+};
+
+#endif // SIMPLESTAFF_HH
+
+
+