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 c92e6ff65a3d7ad7e74d89c64ad7dcbeb31012d0
parent d2714798ecd8999649c672d1a7a1af40c809ab1d
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed, 17 Apr 2024 21:13:02 +0200

Merge branch 'oss/osirus' into oss/osTIrus

Diffstat:
Msource/jucePlugin/ui3/Leds.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/source/jucePlugin/ui3/Leds.cpp b/source/jucePlugin/ui3/Leds.cpp @@ -19,6 +19,9 @@ namespace genericVirusUI { auto* d = dynamic_cast<virusLib::Device*>(_processor.getPlugin().getDevice()); + if(!d) + return 0.0f; + const auto v = std::clamp(d->getFrontpanelState().m_lfoPhases[i], 0.0f, 1.0f); return std::pow(1.0f - v, 0.2f); }); @@ -33,6 +36,9 @@ namespace genericVirusUI { auto* d = dynamic_cast<virusLib::Device*>(_processor.getPlugin().getDevice()); + if(!d) + return 0.0f; + const auto& s = d->getFrontpanelState(); const auto v = std::clamp(_processor.getModel() == virusLib::DeviceModel::Snow ? s.m_bpm : s.m_logo, 0.0f, 1.0f);