lilypond-0.1.16
[lilypond.git] / lily / audio-column.cc
blobe0dbd2efffc26aafca0e1f895f5991f30714da30
1 /*
2 audio-column.cc -- implement Audio_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
7 */
9 #include "audio-column.hh"
10 #include "audio-item.hh"
11 #include "performance.hh"
13 #include "debug.hh"
15 Audio_column::Audio_column (Moment at_mom)
17 at_mom_ = at_mom;
18 performance_l_ = 0;
21 void
22 Audio_column::add (Audio_item* l)
24 audio_item_l_list_.bottom().add (l);
25 l->audio_column_l_ = this;
28 Moment
29 Audio_column::at_mom() const
31 return at_mom_;
34 void
35 Audio_column::print() const
37 #ifndef NPRINT
38 DOUT << "Audio_column {";
39 DOUT << "at: " << at_mom_ << ". Contains:";
40 for (PCursor<Audio_item*> i (audio_item_l_list_.top ()); i.ok (); i++)
41 DOUT << i->name () << ", ";
42 DOUT << "\n}\n";
43 #endif