Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / lily / audio-staff.cc
blobbde50ae80abc7a779a00802a3a5a0e3ccf2631cf
1 /*
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>
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);