#include "stem.hh"
#include "warn.hh"
+using std::vector;
+
/*
The reference stem is used to determine on which side of the beam to place
the tuplet number when it is positioned independently of a bracket. (The number
for (LEFT_and_RIGHT (d))
{
- if (Note_column::has_interface (bounds[d])
+ if (has_interface<Note_column> (bounds[d])
&& Note_column::get_stem (bounds[d]))
bounds[d] = Note_column::get_stem (bounds[d]);
bound_poss[d] = Axis_group_interface::generic_bound_extent (bounds[d], commonx, X_AXIS)[-d];
++count;
}
- return max (0, count - 1);
+ return std::max (0, count - 1);
}
MAKE_SCHEME_CALLBACK (Tuplet_number, calc_y_offset, 1);
: staff_ext_y[DOWN] > ref_stem_ext[UP];
if (move)
{
- Interval ledger_domain = Interval (min (staff_ext_y[UP], ref_stem_ext[UP]),
- max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
+ Interval ledger_domain = Interval (std::min (staff_ext_y[UP], ref_stem_ext[UP]),
+ std::max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
Interval num_y (me->extent (commony, Y_AXIS));
num_y.translate (y_offset);
Interval num_ledger_overlap (num_y);