/*
* Compensate optical illusion regarding vertical position of left
* and right endings due to curved shape.
*/
/*
* Compensate optical illusion regarding vertical position of left
* and right endings due to curved shape.
*/
- Real ypos_correction = -0.1*staff_space * sign(interval);
- Real interval_correction = 0.2*staff_space * sign(interval);
+ Real ypos_correction = -0.1*staff_space * sign (interval);
+ Real interval_correction = 0.2*staff_space * sign (interval);
inner_top_curve.translate (Offset (0.0, -line_thickness));
Stencil top_edge =
Lookup::bezier_sandwich (top_curve, inner_top_curve);
inner_top_curve.translate (Offset (0.0, -line_thickness));
Stencil top_edge =
Lookup::bezier_sandwich (top_curve, inner_top_curve);
Bezier inner_bottom_curve = bottom_curve;
inner_bottom_curve.translate (Offset (0.0, +line_thickness));
Stencil bottom_edge =
Lookup::bezier_sandwich (bottom_curve, inner_bottom_curve);
Bezier inner_bottom_curve = bottom_curve;
inner_bottom_curve.translate (Offset (0.0, +line_thickness));
Stencil bottom_edge =
Lookup::bezier_sandwich (bottom_curve, inner_bottom_curve);
Box left_edge_box (Interval (0, line_thickness),
Interval (-0.5*left_height, +0.5*left_height));
Stencil left_edge = Lookup::filled_box (left_edge_box);
Box left_edge_box (Interval (0, line_thickness),
Interval (-0.5*left_height, +0.5*left_height));
Stencil left_edge = Lookup::filled_box (left_edge_box);
Box right_edge_box (Interval (-line_thickness, 0),
Interval (-0.5*right_height, +0.5*right_height));
Stencil right_edge = Lookup::filled_box (right_edge_box);
right_edge.translate_axis (width, X_AXIS);
right_edge.translate_axis (corrected_interval / 2.0, Y_AXIS);
Box right_edge_box (Interval (-line_thickness, 0),
Interval (-0.5*right_height, +0.5*right_height));
Stencil right_edge = Lookup::filled_box (right_edge_box);
right_edge.translate_axis (width, X_AXIS);
right_edge.translate_axis (corrected_interval / 2.0, Y_AXIS);
- bool add_stem = to_boolean (me->get_grob_property ("add-stem"));
- bool add_cauda = to_boolean (me->get_grob_property ("add-cauda"));
- bool add_join = to_boolean (me->get_grob_property ("add-join"));
+ bool add_stem = to_boolean (me->get_property ("add-stem"));
+ bool add_cauda = to_boolean (me->get_property ("add-cauda"));
+ bool add_join = to_boolean (me->get_property ("add-join"));
out =
Lookup::blank (Box (Interval (0, 0.5*flexa_width), Interval (0,0)));
}
out =
Lookup::blank (Box (Interval (0, 0.5*flexa_width), Interval (0,0)));
}
- vaticana_add_ledger_lines(me, &out, pos, 0, ledger_take_space);
+ vaticana_add_ledger_lines (me, &out, pos, 0, ledger_take_space);
- vaticana_add_ledger_lines(me, &out, pos, 0.5*flexa_height,
+ vaticana_add_ledger_lines (me, &out, pos, 0.5*flexa_height,