13
0

evoral: debugging curve errors

This commit is contained in:
Paul Davis 2021-08-30 09:04:01 -06:00
parent 4cef8c681c
commit 0699449f29

View File

@ -468,7 +468,11 @@ Curve::multipoint_eval (Temporal::timepos_t const & x) const
*/ */
double x2 = x.val() * x.val(); double x2 = x.val() * x.val();
return ev->coeff[0] + (ev->coeff[1] * x.val()) + (ev->coeff[2] * x2) + (ev->coeff[3] * x2 * x.val()); double r = ev->coeff[0] + (ev->coeff[1] * x.val()) + (ev->coeff[2] * x2) + (ev->coeff[3] * x2 * x.val());
if (r > 15.0) {
abort ();
}
return r;
} }
/* fallthrough */ /* fallthrough */
case ControlList::Linear: case ControlList::Linear: