2 grace-align-item.cc -- implement Grace_align_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "grace-align-item.hh"
12 #include "paper-column.hh"
14 Grace_align_item::Grace_align_item ()
16 stacking_dir_ = RIGHT;
21 Grace_align_item::do_pre_processing ()
23 Real nhw = lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
24 threshold_interval_[MIN] = nhw* 1.5;
25 column_l ()->set_elt_property ("contains-grace", SCM_BOOL_T);
28 Axis_align_item::do_pre_processing ();
29 Note_head_side::do_pre_processing ();
31 translate_axis (-0.5* nhw, X_AXIS); // ugh.
35 Grace_align_item::do_substitute_element_pointer (Score_element*o, Score_element*n)
37 Axis_align_item::do_substitute_element_pointer (o,n);
38 Note_head_side::do_substitute_element_pointer( o,n);
41 Grace_align_item::do_add_processing ()