getRawParameterValue()

Unfortunately this has caveats, see this thread:

The best way I found was using the SliderAttachments in AudioProcessorValueTreeState etc.
And if you like that pattern, I have the same done for the “normal” ValueTree, see here:

2 Likes