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 Paper_column ::preprocess ();
46 durations
.sort (Moment_compare
);
50 Score_column::add_duration (Moment d
)
54 warning (_("Ignoring zero duration added to column at ")
59 for (int i
= 0; i
< durations
.size(); i
++)
61 if (d
== durations
[i
])
67 IMPLEMENT_IS_TYPE_B1(Score_column
, Paper_column
);