From aed347726dafafcfdd088293624e45589fcbe7aa Mon Sep 17 00:00:00 2001 From: defiantnerd <97224712+defiantnerd@users.noreply.github.com> Date: Sun, 1 Sep 2024 15:51:22 +0200 Subject: [PATCH] off by one error in value conversion --- src/detail/vst3/parameter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detail/vst3/parameter.h b/src/detail/vst3/parameter.h index f75a2e11..efff845b 100644 --- a/src/detail/vst3/parameter.h +++ b/src/detail/vst3/parameter.h @@ -54,7 +54,7 @@ class Vst3Parameter : public Steinberg::Vst::Parameter { if (info.stepCount > 0) { - return (vst3value * info.stepCount + 1) + min_value; + return (vst3value * info.stepCount) + min_value; } return (vst3value * (max_value - min_value)) + min_value; }