FR: adding a setRange() function to AudioProcessorValueTreeState


Could someone please add this to AudioProcessorValueTreeState? I’ve been using this to allow the user to change the resolution of a slider from 9 steps to 17 steps to continuous. I’ve used this for the past year and it’s worked fine. It also seemed odd that there was already a getRange() but no setRange().

void AudioProcessorValueTreeState::setParameterRange(juce::StringRef paramID, NormalisableRange<float>newRange)
    if (Parameter* p = Parameter::getParameterForID (processor, paramID))
        p->range = newRange;