From 12cb0b5b43d514885abbb4f618b31efa63aea480 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 31 Mar 2020 00:05:02 +0200 Subject: [PATCH] Adapt the curve computation to the linearRamp changes --- src/sfizz/Curve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Curve.cpp b/src/sfizz/Curve.cpp index ee9c5af2..b29fbf15 100644 --- a/src/sfizz/Curve.cpp +++ b/src/sfizz/Curve.cpp @@ -144,7 +144,7 @@ void Curve::lerpFill(const bool fillStatus[NumValues]) const auto length = right - left; if (length > 1) { const float mu = (_points[right] - _points[left]) / length; - linearRamp(pointSpan.subspan(left + 1, length - 1), _points[left], mu); + linearRamp(pointSpan.subspan(left, length), _points[left], mu); } left = right++; }