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::do_print() const
23 DOUT
<< "mus "<< musical_b_
<<" at " << when_
<<'\n';
24 DOUT
<< "durations: [";
25 for (int i
=0; i
< durations
.size(); i
++)
26 DOUT
<< durations
[i
] << " ";
28 Paper_column::do_print();
33 Moment_compare (Moment
const &m1
, Moment
const &m2
)
39 Score_column::preprocess()
41 durations
.sort (Moment_compare
);
45 Score_column::add_duration (Moment d
)
48 for (int i
= 0; i
< durations
.size(); i
++)
50 if (d
== durations
[i
])
56 IMPLEMENT_IS_TYPE_B1(Score_column
, Paper_column
);