Positions can theoretically be "empty" if the left is higher than
the right. Thus, to find its center, we don't use the interval
center function and instead find the center manually.
Spanner *tuplet = unsmob_spanner (me->get_object ("bracket"));
Interval positions = robust_scm2interval (tuplet->get_property ("positions"), Interval (0.0, 0.0));
-
- return scm_from_double (positions.center ());
+ return scm_from_double ((positions[LEFT] + positions[RIGHT]) / 2.0);
}
MAKE_SCHEME_CALLBACK (Tuplet_number, calc_cross_staff, 1)