diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2004-07-23 15:33:04 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2004-07-23 15:33:04 +0000 |
commit | 53ef525059b674cb00be84ccbcf99f17d727e0cb (patch) | |
tree | 470c8d0549dc512da928aff75cc5f66862197ab3 /lily/ambitus.cc | |
parent | 3c9561d788078f7ee4a6e1d973cf549d8f258935 (diff) |
(create_ambitus): change name to
AmbitusLine. Create AmbitusAccidental and AmbitusNoteHead for
other ambitus parts.
(create_ambitus): group grobs in Ambitus grouping object.
Diffstat (limited to 'lily/ambitus.cc')
-rw-r--r-- | lily/ambitus.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lily/ambitus.cc b/lily/ambitus.cc index bfcc7fd5c6..cb46229ec0 100644 --- a/lily/ambitus.cc +++ b/lily/ambitus.cc @@ -44,15 +44,15 @@ Ambitus::print (SCM smob) } Real pad = 0.35; - Real pmax = maxh->relative_coordinate (common, Y_AXIS) - pad; - Real pmin = minh->relative_coordinate (common, Y_AXIS) + pad; + Real pmax = maxh->extent (common, Y_AXIS)[DOWN] - pad; + Real pmin = minh->extent (common, Y_AXIS)[UP] + pad; if (pmin < pmax) { - Real linethickness = me->get_paper ()->get_dimension (ly_symbol2scm ("linethickness")); + Real linethickness = me->get_paper ()->get_dimension (ly_symbol2scm ("linethickness")) * robust_scm2double (me->get_property ("thickness"), 1.0); Real blotdiameter = me->get_paper ()->get_dimension (ly_symbol2scm ("blotdiameter")); - Interval x_extent = 0.5 * Interval (-linethickness, +linethickness); - Interval y_extent = 0.5 * Interval (pmin, pmax); + Interval x_extent = 0.5 * linethickness *Interval (-1,1); + Interval y_extent = Interval (pmin, pmax); Box line_box (x_extent, y_extent); Stencil line = Lookup::round_filled_box (line_box, blotdiameter); |