2 midi-walker.hh -- declare Midi_walker
4 (c) 1996--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
5 Jan Nieuwenhuizen <janneke@gnu.org>
12 #include "lily-proto.hh"
15 struct Midi_note_event : PQueue_ent<Moment, 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_l, Midi_track* midi_track_l);
33 void operator ++ (int);
37 void do_start_note (Midi_note* note_p);
38 void do_stop_notes (Moment now_mom);
39 void output_event (Moment now_mom, Midi_item* l);
42 Audio_staff* staff_l_;
44 Link_array<Audio_item> * item_l_arr_l_;
45 PQueue<Midi_note_event> stop_note_queue;
50 #endif // MIDI_WALKER_HH