]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/midi-walker.hh
release: 0.0.53
[lilypond.git] / lily / include / midi-walker.hh
index fcfcb0c6e029a0f963da08bb2eb14e24292b8ecd..30ad18fe901c8cfcfa55ca06c520cbdf1015d706 100644 (file)
 #include "staff-walker.hh"
 #include "pcursor.hh"
 #include "pqueue.hh"
+struct Note_event : PQueue_ent<Moment,Melodic_req*>
+{
+    bool ignore_b_;
+    Note_event() { 
+       ignore_b_ = false;
+    }
+};
 
+int compare(Note_event const&, Note_event const&);
 
 /**
   a simple walker which collects midi stuff, and then outputs.
 
   Should derive from Staff_walker
   */
-class Midi_walker : public PCursor<Staff_column*> {
+class Midi_walker : public PCursor<Staff_column*> 
+{
     Midi_track *track_l_;
     
-    PQueue<Melodic_req*, Moment> stop_notes;
+    PQueue< Note_event > stop_notes;
+
     Moment last_moment_;
 
     /* *************** */