Pluginval can set an AudioParameterBools to odd values

This is only a contradiction in terms of different tools, auval vs pluginval. And like I said, I can’t remember exactly what auval tests for, maybe it doesn’t do this test and if so that’s good, pluginval doesn’t either and that’s consistent.


Can I clarify if it is only AudioParameterBool’s that are causing this failure?
If so, yes I think this would fix it:

Or even using the range member and the same body as the AudioParameterInt/AudioParameterChoice. E.g. (not tested):

float getValue() const
    { return range.convertTo0to1 (value); }
void setValue (float newValue)
    { value = range.convertFrom0to1 (newValue); valueChanged (get()); }

Does making that local change fix the problem for everyone here? If so, maybe we can propose this to the juce team?