Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STEPPED parameters mis-handled #148

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/wrapper/clap-juce-wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1262,8 +1262,13 @@ class ClapJuceWrapper : public clap::helpers::Plugin<
if (paramVariant.processorParam->isAutomatable())
info->flags = info->flags | CLAP_PARAM_IS_AUTOMATABLE;

if (paramVariant.processorParam->isBoolean() || paramVariant.processorParam->isDiscrete())
if (paramVariant.processorParam->isBoolean())
{
// This condition used to say || paramVariant.processorParam->isDiscrete())
// but AudioProcessorChoice and Int normalize to 0...1 in
// JUCE so this ends up breaking the built in controls
// at the edge in CLAP vs VST3

info->flags = info->flags | CLAP_PARAM_IS_STEPPED;
}

Expand Down
Loading