Hello,
I am trying to make in my plugin A/B button to compare different parameters state.
But to do that I need to update all parameters in my AudioProcessorValueTreeState
.
But it looks like the only method to that is to call AudioProcessorValueTreeState::replaceState()
.
But unfortunately it resets all undo history which I would like to avoid.
While I have access to AudioProcessorValueTreeState::state
because it is public I tried to make my own method where I do the same as it is in AudioProcessorValueTreeState::replaceState()
but without reseting undo history but of course it doesn’t work because when I assign new ValueTree to the AudioProcessorValueTreeState::state
it probably loose all listeners or something like that. So I am not sure how to do that.
Has anybody any solution to use when we want to exchange all parameters values without losing undo history?
For any help great thanks in advance.
Best Regards.