2 rhythmic-column-grav.cc -- implement Rhythmic_column_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "rhythmic-column-engraver.hh"
10 #include "note-head.hh"
12 #include "note-column.hh"
13 #include "dot-column.hh"
14 #include "musical-request.hh"
16 Rhythmic_column_engraver::Rhythmic_column_engraver()
25 Rhythmic_column_engraver::process_acknowledged ()
27 if (rhead_l_arr_.size ())
31 ncol_p_ = new Note_column;
32 announce_element (Score_element_info (ncol_p_, 0));
35 for (int i=0; i < rhead_l_arr_.size (); i++)
37 ncol_p_->add_head (rhead_l_arr_[i]);
39 rhead_l_arr_.set_size (0);
47 ncol_p_->set_dotcol (dotcol_l_);
52 ncol_p_->set_stem (stem_l_);
59 Rhythmic_column_engraver::acknowledge_element (Score_element_info i)
61 Item * item = dynamic_cast <Item *> (i.elem_l_);
64 if (Stem*s=dynamic_cast<Stem *> (item))
68 else if (Rhythmic_head*r=dynamic_cast<Rhythmic_head *> (item))
70 rhead_l_arr_.push (r);
72 else if (Dot_column*d =dynamic_cast<Dot_column *> (item))
79 Rhythmic_column_engraver::do_pre_move_processing()
84 if (get_property ("hshift", 0).operator bool ())
86 ncol_p_->set_elt_property (horizontal_shift_scm_sym, SCM_BOOL_T);
89 typeset_element (ncol_p_);
95 Rhythmic_column_engraver::do_post_move_processing()
105 ADD_THIS_TRANSLATOR(Rhythmic_column_engraver);