lilypond-1.1.55
[lilypond.git] / lily / audio-column.cc
blob7a90fa256244897ecfc9431e6d34ee854e6d1d9c
1 /*
2 audio-column.cc -- implement Audio_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 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 DOUT << "Audio_column {";
39 DOUT << "at: " << at_mom_ << ". Contains:";
40 for (int i =0; i < audio_item_l_arr_.size (); i++)
41 DOUT << classname (audio_item_l_arr_[i]) << ", ";
42 DOUT << "\n}\n";
43 #endif