AudioProcessorParameter / migrate old plugins

Is it possible to set the internal VST 2 parameter id for AudioProcessorParameters. I ask because i think about updating older plugins to the AudioProcessorTreeState and this is only possible if i can assign the param id’s or if they start by 0 and increment with every added parameter.
The best solution would be an overloaded constructor (or an optional parameter) for all AudioProcessorParameter where i can pass the id the parameter should have.

Is this possible or is there another way to migrate old plugins that work with int parameter id’s?

Enable JUCE_FORCE_USE_LEGACY_PARAM_IDS in the Projucer to get parameter ids starting from 0 and increment with every added parameter:

1 Like

Hi Fabian, thanks for the response. That’s exactly what i need.