2 note-column.cc -- implement Note_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "note-column.hh"
11 #include "note-head.hh"
15 IMPLEMENT_IS_TYPE_B1(Note_column,Head_column);
17 Note_column::Note_column()
25 head_l_arr_.sort (Note_head::compare);
29 Note_column::head_positions_interval() const
31 ((Note_column*)this)->sort();
32 return Interval_t<int> (head_l_arr_[0]->position_i_,
33 head_l_arr_.top()->position_i_);
39 Note_column::do_pre_processing()
43 dir_ = (head_positions_interval().center () >= 5) ? DOWN:UP;
45 Head_column::do_pre_processing();