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"
13 Grace_align_item::Grace_align_item ()
15 stacking_dir_ = RIGHT;
20 Grace_align_item::do_pre_processing ()
22 Real nhw = lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
23 threshold_interval_[MIN] = nhw* 1.5;
25 Axis_align_item::do_pre_processing ();
26 Note_head_side::do_pre_processing ();
28 translate_axis (-0.5* nhw, X_AXIS); // ugh.
32 Grace_align_item::do_substitute_element_pointer (Score_element*o, Score_element*n)
34 Axis_align_item::do_substitute_element_pointer (o,n);
35 Note_head_side::do_substitute_element_pointer( o,n);