From 4cef8c681c844ad29b10e065307bce6d160cf645 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 30 Aug 2021 09:03:47 -0600 Subject: [PATCH] evoral: fix for Curve coefficient computation --- libs/evoral/Curve.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/evoral/Curve.cc b/libs/evoral/Curve.cc index 43ba4e9788..55e229c76f 100644 --- a/libs/evoral/Curve.cc +++ b/libs/evoral/Curve.cc @@ -111,7 +111,7 @@ Curve::solve () const /* first segment */ - fplast = ((3 * (y[1] - y[0]) / (2 * (xi - xim1))) - (fpone * 0.5)); + fplast = ((3 * (y[1] - y[0]) / (2 * (x[1].val() - x[0].val()))) - (fpone * 0.5)); /* we don't store coefficients for i = 0 */