#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 (SCM s = scm_car (beaming); scm_is_pair (s); s = scm_cdr (s))
{
- if (scm_is_true (scm_c_memq (scm_car (s), scm_cdr (beaming))))
+ if (scm_is_true (ly_memv (scm_car (s), scm_cdr (beaming))))
++count;
}
- return std::max (0, count - 1);
+ return 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 (std::min (staff_ext_y[UP], ref_stem_ext[UP]),
- std::max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
+ Interval ledger_domain = Interval (min (staff_ext_y[UP], ref_stem_ext[UP]),
+ 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);