Add arrowed sharp signs
[lilypond.git] / lily / audio-staff.cc
blob73a56d6a62681569975184269b31874baa0bbcb4
1 /*
2 audio-staff.cc -- implement Audio_staff
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2008 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
9 #include "audio-staff.hh"
11 #include "midi-chunk.hh"
12 #include "midi-stream.hh"
13 #include "midi-walker.hh"
15 void
16 Audio_staff::add_audio_item (Audio_item *l)
18 audio_items_.push_back (l);
21 Audio_staff::Audio_staff ()
23 channel_ = -1;
26 void
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);
33 for (; i.ok (); i++)
34 i.process ();
36 i.finalize ();
38 midi_stream.write (midi_track);