* lily/paper-book.cc: remove copyright & tagline. Remove
[lilypond.git] / lily / audio-staff.cc
bloba233fa3f8b53f186fa21767e868f576b69176e1e
1 /*
2 audio-staff.cc -- implement Audio_staff
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
9 #include "audio-staff.hh"
10 #include "audio-item.hh"
11 #include "midi-item.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 (l);
22 void
23 Audio_staff::output (Midi_stream& midi_stream_r, int track_i)
25 Midi_track midi_track;
26 midi_track.number_ = track_i;
27 midi_track.channel_ = channel_;
28 for (Midi_walker i (this, &midi_track); i.ok (); i++)
29 i.process ();
30 midi_stream_r << midi_track;