2 audio-staff.cc -- implement Audio_staff
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2009 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "audio-staff.hh"
11 #include "midi-chunk.hh"
12 #include "midi-stream.hh"
13 #include "midi-walker.hh"
16 Audio_staff::add_audio_item (Audio_item
*l
)
18 audio_items_
.push_back (l
);
21 Audio_staff::Audio_staff ()
27 Audio_staff::output (Midi_stream
&midi_stream
, int channel
)
29 Midi_track midi_track
;
30 midi_track
.number_
= channel
;
32 Midi_walker
i (this, &midi_track
, channel
);
38 midi_stream
.write (midi_track
);