2 rest-column.cc -- implement Rest_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "rest-column.hh"
10 #include "note-head.hh"
11 #include "rest-column.hh"
14 Rest_column::add(Note_head *n_l)
17 head_l_arr_.push(n_l);
21 Rest_column::translate_y(Real dy_f)
23 for (int i=0; i < head_l_arr_.size(); i++)
24 head_l_arr_[i]->translate(Offset(0,dy_f));
27 IMPLEMENT_STATIC_NAME(Rest_column);
29 Rest_column::Rest_column()
36 Rest_column::do_substitute_dependency(Score_elem*o,Score_elem*n)
38 Script_column::do_substitute_dependency(o,n);
39 if (o->name() == Note_head::static_name()) {
40 head_l_arr_.substitute( (Note_head*)o->item(),
41 (n)? (Note_head*)n->item() : 0);