2 score-column.cc -- implement Score_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "score-column.hh"
12 #include "command-request.hh"
14 Score_column::Score_column (Moment w, bool musical_b)
18 musical_b_ = musical_b;
22 Score_column::do_print() const
25 DOUT << "mus "<< musical_b_ << " at " << when_ << '\n';
26 if (break_penalty_i_ >= Break_req::FORCE)
27 DOUT << "Break forced";
29 DOUT << "durations: [";
30 for (int i=0; i < durations.size(); i++)
31 DOUT << durations[i] << " ";
33 Paper_column::do_print();
38 Moment_compare (Moment const &m1, Moment const &m2)
44 Score_column::preprocess()
46 Paper_column ::preprocess ();
47 durations.sort (Moment_compare);
51 Score_column::add_duration (Moment d)
55 warning (_f ("ignoring zero duration added to column at %s",
60 for (int i = 0; i< durations.size(); i++)
62 if (d == durations[i])