AudioUnit Parameter Ranges and AudioProcessorValueTreeState

So I’ve got a plugin with a number of parameters with different ranges, all stored in an AudioProcessorValueTreeState and connected to the GUI via SliderAttachments. This all works fine until I try to reopen a session with this plugin, at which point all of the sliders have been set to the bottom of their ranges. I have a feeling this is due to the fact that the host sees parameters in the range [0,1], while the parameter states are stored in their own ranges. Has anyone run into this issue and managed to find a fix?

Much appreciated,

It seems to only be an issue in Logic, for what it’s worth.

OK i tried to re-produce this by changing the JUCE demo plugin to use slider attachments and the AudioProcessorValueTreeState. I can’t really re-produce it. Can you have a look at my code and try to re-produce it?

Interesting, I’m having the same issue with the demo plugin. This time the parameters just reset to their default value though - with mine it was some other seemingly arbitrary value.

I’m on macOS 10.12.1 and Logic Pro X 10.2.1 for what it’s worth.

Hmmm strange, I’m on the same version. Must be some kind of undefined behaviour.