2 score-column.cc -- implement Score_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
11 #include "score-column.hh"
13 Score_column::Score_column (Moment w)
15 forced_break_b_ = false;
21 Score_column::do_print() const
24 DOUT << "mus "<< musical_b_ <<" at " << when_<< '\n';
26 DOUT << "Break forced";
28 DOUT << "durations: [";
29 for (int i=0; i < durations.size(); i++)
30 DOUT << durations[i] << " ";
32 Paper_column::do_print();
37 Moment_compare (Moment const &m1, Moment const &m2)
43 Score_column::preprocess()
45 durations.sort (Moment_compare);
49 Score_column::add_duration (Moment d)
53 warning (_("Ignoring zero duration added to column at ")
58 for (int i = 0; i< durations.size(); i++)
60 if (d == durations[i])
66 IMPLEMENT_IS_TYPE_B1(Score_column, Paper_column);