lilypond-1.3.65
[lilypond.git] / lily / audio-column.cc
blob1dde79a5e98d63ed0a3105e87855046615c2b7d7
1 /*
2 audio-column.cc -- implement Audio_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Jan Nieuwenhuizen <janneke@gnu.org>
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 (Audio_item* l)
24 audio_item_l_arr_.push (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 DEBUG_OUT << "Audio_column {";
39 DEBUG_OUT << "at: " << at_mom_ << ". Contains:";
40 for (int i =0; i < audio_item_l_arr_.size (); i++)
41 DEBUG_OUT << classname (audio_item_l_arr_[i]) << ", ";
42 DEBUG_OUT << "\n}\n";
43 #endif