ParameterAttachment::resetToDefaultValue()

I ran into something similar today…Outside of the apvts, it’s pretty convoluted to set an AudioParameterFloat back to its default. getDefaultValue is private, so this was the only route I could see:

param->setValueNotifyingHost (dynamic_cast<juce::RangedAudioParameter*> (param->getDefaultValue()));

vs. an ergonomic API like

param->setToDefaultValue()

My context: meta parameters need to be able to change other parameters.

Related:

Parameters still feel due for a round of auditing/cleanup, the API is a bit all over the place and the docs neglect to specify what’s normalized, what’s not (for example getDefaultValue returns normalized, setValueNotifyingHost expects normalized, neither are explicitly documented).