Skip to content

Commit

Permalink
Make target param seen by host as integer
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 4, 2025
1 parent efd121d commit ef4d10e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions plugin/MasterMePlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,18 @@ class MasterMePlugin : public FaustGeneratedPlugin
{
if (index < kParameterCount)
{
switch (index)
if (index == kParameter_global_bypass)
{
case kParameter_global_bypass:
param.initDesignation(kParameterDesignationBypass);
break;
default:
FaustGeneratedPlugin::initParameter(index, param);
return;
}

FaustGeneratedPlugin::initParameter(index, param);

switch (index)
{
case kParameter_target:
param.hints |= kParameterIsInteger;
break;
}
return;
Expand Down

0 comments on commit ef4d10e

Please sign in to comment.