Values get generated on the audio thread Parameter change gestures are triggered on the message threadĪuto* param = dynamic_cast(mVTS->getParameter("paramOne")) Using a FIFO we queue values from the audio thread, and the HighResolutionTimer callback dequeues and uses these values to update the parameter: #include "AutomationStateBlock.h"ĪutomationStateBlock() We have implemented this with a juce::HighResolutionTimer. The automation data needs to be smooth regardless of CPU load or other GUI activity, so we cannot update the parameter directly on the message thread. The purpose is to automate a parameter based on the plugin’s internal state, and for our situation we do need to write this to a parameter rather than keeping it as internal state. I have a plugin which generates parameter values on the audio thread based on midi data, which automates a user-facing parameter on the DAW automation lane.
0 Comments
Leave a Reply. |