2 stcol.cc -- implement Staff_column
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "timedescription.hh"
13 #include "commandrequest.hh"
14 #include "musicalrequest.hh"
17 Staff_column::OK() const
20 assert (command_column_l_->when() == musical_column_l_->when());
25 Staff_column::when() const
27 return (command_column_l_)?
28 command_column_l_->when():
29 musical_column_l_->when();
33 Staff_column::add(Voice_element*ve)
35 for (iter_top(ve->reqs,j); j.ok(); j++) {
37 if (j->nonmus()->timing()) {
38 timing_req_l_arr_.push(j->nonmus()->timing());
40 if (!j->barcheck() && !j->nonmus()->measuregrouping())
41 setup_one_request(j); // no need to bother children
44 musical_column_l_->add_duration(j->rhythmic()->duration());
51 Staff_column::Staff_column()
53 musical_column_l_ = 0;
54 command_column_l_ = 0;
60 Staff_column::~Staff_column()
65 Staff_column::set_cols(Score_column*c1, Score_column*c2)
67 command_column_l_ = c1;
68 musical_column_l_ = c2;