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)
20 Score_column::print() const
23 DOUT << "Score_column { mus "<< musical_b_ <<" at " << when_<<'\n';
24 DOUT << "durations: [";
25 for (int i=0; i < durations.size(); i++)
26 DOUT << durations[i] << " ";
34 Moment_compare (Moment const &m1, Moment const &m2)
40 Score_column::preprocess()
42 durations.sort (Moment_compare);
46 Score_column::add_duration (Moment d)
49 for (int i = 0; i< durations.size(); i++)
51 if (d == durations[i])
58 Score_column::do_set_breakable()
60 Score_column *c1 = new Score_column (when_);
61 Score_column *c2 = new Score_column (when_);
64 c1->durations = durations;
65 c2->durations = durations;
67 = c2->musical_b_ = musical_b_;