2 note-column.cc -- implement Note_column
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "note-column.hh"
12 #include "notehead.hh"
15 IMPLEMENT_STATIC_NAME(Note_column);
19 Note_column::add(Stem*stem_l)
25 Note_column::add(Notehead* n_l)
27 assert(!n_l->rest_b_);
28 head_l_arr_.push(n_l);
32 Note_column::Note_column()
41 head_l_arr_.sort( Notehead::compare);
45 Note_column::head_positions_interval()const
47 ( (Note_column*)this)->sort();
48 return Interval_t<int> ( head_l_arr_[0]->position_i_,
49 head_l_arr_.top()->position_i_);