Issue: AudioProcessorValueTreeState::getParameterAsValue() broken?

Hey JUCE team,

seems like AudioProcessorValueTreeState::getParameterAsValue() is not working anymore.

To reproduce open AudioPluginDemo and add in the constructor:

    Value gainValue = state.getParameterAsValue("gain");
    var gainVar = gainValue.getValue();

gainVar is always 0. (See screenshot). Should be 0.9 in my case. But maybe I’m missing something stupid.


Awesome, thanks for the quick fix!

Just to make sure: Will calls on Value::Listener always be on the main thread? As stated in the docs Listening on the AudioParameters directly does not have this guarantee.