I couldn’t find an example of using AudioProcessorValueTreeState. Do you know of an open-source plugin I can look into?
In the “audio plugin demo”, only AudioProcessorParameter is used and processing code directly uses the params without any mirroring of the state (no update of custom objects on every change of parameter - just use latest values) and no locks are used, which doesn’t seem thread-safe (AudioParameterFloat, for example, doesn’t keep an atomic value or a lock)… is it?
I am reading the forum for some time now and found a couple of mentions of the AudioProcessorValueTreeState, but no working examples to follow.
What I want to achieve:
- No complete UI (or processing) state updates - just the changed value (no timer updates).
- Thread-safety for read & write to params, but lock-free on the Audio thread.
I guess the APVTS would only help with task #1?
Any help is much appreciated.