From 0699449f29434f3259d8abb7f5fe8aa0cd3a589b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 30 Aug 2021 09:04:01 -0600 Subject: [PATCH] evoral: debugging curve errors --- libs/evoral/Curve.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/evoral/Curve.cc b/libs/evoral/Curve.cc index 55e229c76f..6c8ace144e 100644 --- a/libs/evoral/Curve.cc +++ b/libs/evoral/Curve.cc @@ -468,7 +468,11 @@ Curve::multipoint_eval (Temporal::timepos_t const & x) const */ 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 */ case ControlList::Linear: