gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit a5ae5b4f757ff548263c3bae439e8c9a1282c6db
parent 4229f9539178e3b207db4d933c74bab5153b6e70
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun,  9 Jun 2024 16:14:58 +0200

fix initial parameter value out of range if range does not start with zero

Diffstat:
Msource/jucePluginLib/parameter.cpp | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/source/jucePluginLib/parameter.cpp b/source/jucePluginLib/parameter.cpp @@ -15,6 +15,7 @@ namespace pluginLib m_range.end = static_cast<float>(m_desc.range.getEnd()); m_range.interval = m_desc.step ? static_cast<float>(m_desc.step) : (m_desc.isDiscrete || m_desc.isBool ? 1.0f : 0.0f); + m_value.setValue(m_range.start); m_value.addListener(this); }