I am working on a guitar amp plugin which so far works great. I have a processorChain with some EQ’s, a couple gains and three waveshaper modules. Outside of the processorChain I have an input gain, a convolution module and an output gain.
The problem I am having is that the plugin doesn’t actually affect the audio until the editor is opened. I am using the getStateInformation and setStateInformation functions and they work to save the plugin state when the project is closed. Once the plugin editor has been opened, the plugin works normally. Closing the editor doesn’t affect behavior. It is only when a project is closed and reopened with the plugin editor closed that the undesired behavior occurs.
I’m using Logic Pro X so I’m not sure if this bug happens in other DAW’s. It’s as if the pluginProcessor isn’t fully instantiated till the editor is opened. Any help is appreciated!
Never noticed a similar issue. You need to check your setStateInformation code. Maybe you do not set all values and opening the UI fixes it. But that’s just a wild guess under the assumption that you don’t have any DSP-related variables or code in the UI.
Are you using ParameterAttachments, or do you write updating values from controls manually?
A wild guess would be, that a value is not initialised correctly, and it is accidentally fixed by setting it from the control (which is wrong, the controls should always reflect the values without changing them).
I think getStateInformation is likely a red herring
Quick update, I managed to fix my issues. I think it was a combo of not having an AudioProcessorValueTreeState listener in my pluginProcessor and also having parameter values being accessed by the pluginEditor. Thanks for all your help everyone!