From 18ca2f9cb5f2456ec807d7a404a10b65fce2308c Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Mon, 13 Jan 2025 10:14:35 +0100 Subject: [PATCH] fix bad setting of instance->gain in example --- test/plugin.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/plugin.h b/test/plugin.h index 26f88cc..94bd2f6 100644 --- a/test/plugin.h +++ b/test/plugin.h @@ -72,8 +72,7 @@ static void plugin_reset(plugin *instance) { static void plugin_set_parameter(plugin *instance, size_t index, float value) { switch (index) { case plugin_parameter_gain: - //approx instance->gain = powf(10.f, 0.05f * value); - instance->gain = ((2.6039890429412597e-4f * value + 0.032131027163547855f) * value + 1.f) / ((0.0012705124328080768f * value - 0.0666763481312185f) * value + 1.f); + instance->gain = value; break; case plugin_parameter_delay: instance->delay = value;