Currently I use an AudioProcessorValueTreeState with the createAndAddParameter method as a means of tying together GUI, automation and my processor, as well as for maintaining state when a host reopens a saved project using my plugin.
I’ve had no problems with getting the Editor GUI to display what I want it to; using objects like a SliderAttachment causes the associated Slider to display the correct value range for the associated AudioProcessorParameter.
However, I’m uncertain as to how to get automation lanes in my host to do the same. Currently, all parameters are displayed as going from 0 to 1 in Ableton-
Going by other plugins, I know that the DAW/host is capable of displaying different value ranges. How can I go about doing this with JUCE? For most of the parameters, I simply want them to display the bounds of their NormalisableRange’s,
An additional challenge- currently, all automation parameters move linearly. This is an issue for the gain and cutoff parameters, which should move logarithmically. I was able to overcome this in the GUI via the use of Slider’s setSkewFactorFromMidpoint, but I’m unsure of how to do it with automation. Is this something I must set with the NormalisableRange I use within createAndAddParameter?
One more challenge- The parameters go associated with Dry Gain and Wet Gain go from 0.0 to 4.0 (-∞dB to +6db). I want the automation range to display neither 0 to 1 nor 0 to 4, but rather these logarithmically determined decibel values. Is there a way that can be done?
Thank you for your insight!