3 span-score-bar.cc -- implement Span_score_bar
5 source file of the GNU LilyPond music typesetter
7 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "piano-brace.hh"
12 #include "paper-def.hh"
16 Piano_brace::Piano_brace ()
18 extra_move_left_f_
= 0.0;
22 Piano_brace::get_bar_sym (Real dy
) const
24 Atom a
= lookup_l ()->vbrace (dy
);
25 a
.translate_axis (-extra_move_left_f_
, X_AXIS
);
32 Piano_brace::do_width() const
34 return Interval (0,0);
38 Piano_brace::do_post_processing ()
40 Span_score_bar::do_post_processing();
41 Interval i
= Span_score_bar::do_height ();
42 Real staffheight_f
= paper ()->staffheight_f ();
44 // don't set braces that span only one staff
45 if (i
.length () <= 2.0 * staffheight_f
)
48 transparent_b_
= true;