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"
14 IMPLEMENT_STATIC_NAME(Note_column);
15 IMPLEMENT_IS_TYPE_B1(Note_column,Head_column);
18 Note_column::set(Stem*s)
24 Note_column::Note_column()
32 head_l_arr_.sort( Note_head::compare);
36 Note_column::head_positions_interval()const
38 ((Note_column*)this)->sort();
39 return Interval_t<int> ( head_l_arr_[0]->position_i_,
40 head_l_arr_.top()->position_i_);
46 Note_column::do_pre_processing()
48 if (!dir_i_&& !stem_l_){
49 dir_i_ = (head_positions_interval().center() >= 5) ? -1 : 1;
51 Head_column::do_pre_processing();