| @@ -302,7 +302,7 @@ private: | |||||
| #endif | #endif | ||||
| juceParameters.update (*audioProcessor, forceLegacyParamIDs); | juceParameters.update (*audioProcessor, forceLegacyParamIDs); | ||||
| auto additionalLegacyParameterIDIndex = juceParameters.getNumParameters(); | |||||
| auto numParameters = juceParameters.getNumParameters(); | |||||
| bool vst3WrapperProvidedBypassParam = false; | bool vst3WrapperProvidedBypassParam = false; | ||||
| auto* bypassParameter = audioProcessor->getBypassParameter(); | auto* bypassParameter = audioProcessor->getBypassParameter(); | ||||
| @@ -333,8 +333,7 @@ private: | |||||
| { | { | ||||
| // we need to remain backward compatible with the old bypass id | // we need to remain backward compatible with the old bypass id | ||||
| if (vst3WrapperProvidedBypassParam) | if (vst3WrapperProvidedBypassParam) | ||||
| vstParamID = static_cast<Vst::ParamID> ((isUsingManagedParameters() && ! forceLegacyParamIDs) ? paramBypass | |||||
| : additionalLegacyParameterIDIndex++); | |||||
| vstParamID = static_cast<Vst::ParamID> ((isUsingManagedParameters() && ! forceLegacyParamIDs) ? paramBypass : numParameters); | |||||
| bypassParamID = vstParamID; | bypassParamID = vstParamID; | ||||
| } | } | ||||
| @@ -353,8 +352,7 @@ private: | |||||
| juceParameters.params.add (ownedProgramParameter.get()); | juceParameters.params.add (ownedProgramParameter.get()); | ||||
| programParamID = static_cast<Vst::ParamID> (forceLegacyParamIDs ? additionalLegacyParameterIDIndex++ | |||||
| : paramPreset); | |||||
| programParamID = static_cast<Vst::ParamID> (forceLegacyParamIDs ? i++ : paramPreset); | |||||
| vstParamIDs.add (programParamID); | vstParamIDs.add (programParamID); | ||||
| paramMap.set (static_cast<int32> (programParamID), ownedProgramParameter.get()); | paramMap.set (static_cast<int32> (programParamID), ownedProgramParameter.get()); | ||||