2 midi-walker.hh -- declare Midi_walker
4 (c) 1996--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
5 Jan Nieuwenhuizen <janneke@gnu.org>
12 #include "lily-proto.hh"
15 struct Midi_note_event : PQueue_ent<int, Midi_note *>
21 int compare (Midi_note_event const &left, Midi_note_event const &right);
24 walk audio and output midi
29 Midi_walker (Audio_staff *audio_staff, Midi_track *midi_track,
34 void operator ++ (int);
38 void do_start_note (Midi_note *note);
39 void do_stop_notes (int);
40 void output_event (int, Midi_item *l);
41 Midi_item *get_midi (Audio_item*);
46 vector<Audio_item*> items_;
47 PQueue<Midi_note_event> stop_note_queue;
50 vector<Midi_item*> midi_events_;
53 #endif // MIDI_WALKER_HH