Three simple and quick questions:
Sometimes the situation arises where one must update some parameter programmatically. What is the “correct” way to do this? Calling AudioProcessorValueTreeState::getParameterAsValue() and using assignment? Or calling AudioProcessorValueTreeState::getParameter() and using assignment? Or something else?
The function AudioProcessorValueTreeState::getRawParameterValue() returns an atomic pointer to a float parameter. The documentation says that this is to read the value of the pointer in realtime w/o overhead. However, for whatever reason, this doesn’t seem to return some kind of const pointer, leaving open the possibility that one could also modify this value. Is being able to modify this something that is intended or is it supposed to be read-only? (I get that you don’t want to modify parameters in realtime in the audio processing thread.)
AudioProcessorValueTreeState::getRawParameterValue() seems to only return a pointer to float. Is there something similar for other parameter types, e.g. int or whatever?