I am building an audio plugin which allows to save custom presets and then offers a parameter to automate between those presets. So far this is working fine.
However, there are some problems with automation recording in some hosts: Each custom preset is a set of values for the underlying low-level parameters of the plugin. When a preset is being loaded all these low-level parameters are being set by calling getParameterAsValue() and then assigning the new value to the parameter. This parameter change seems to cause problem since the host is being notified about it and tries to store this parameter change is automation.
Consequently, each time there is a switch between presets, the host gets lots of notifications and automation data which is undesired.
Is there a way to set the parameter values of the ValueTree without notifying the host?
A simple solution would be to set the lowlevel parameters to be non-automatable. But this is not ideal because in some scenarios users would maybe also want to automate them.
The issues have been reported mostly by ProTools users so far.
Has anybody an idea how to solve this?