What’s the best practice for updating parameter values for DSP use?
As a beginner I’ve gone from using the tree values directly via apvts.getRawParameterValue(paramId) inside the parameterChanged(paramId, newValue) function, to then using the more accurate newValue to update my member variables.
Now I’ve heard that that’s still not good enough for offline rendering and automation because tree values run on a timer, and I should instead be grabbing the values directly inside processBlock. That is, by “keeping a pointer to the parameter and then getting the value inside processBlock.”
Is using parameterChanged() and newValue enough, or is that only really useful for GUI? And if it’s better to grab parameter values directly inside processBlock, where do I grab them from if not from the tree? My guess is grabbing them using getRawParameterValue(paramId) inside the processBlock will get the most accurate value.
Any help is much appreciated!
