Generic Parameters - Update Name

            p.push_back(std::make_unique<juce::AudioParameterFloat>(
                juce::ParameterID{ kThresholdStr, kVersion },
                "Limiter - Threshold",
                0, 1, 1
            ));

I have some generic parameter defined in the start of the program, like the one above.

Let’s say I want to re-use that zero to one value with a different mode - like a compressor’s threshold - is there away to send a notification to the DAW to relabel the parameter when the use case has changed? such as “Limiter - Threshold” to “Compressor - Threshold”…

It would be very convenient to reuse parameters, when possible, instead of having to layout a bunch of generic parameters just so they can have unique labels…

Cheers fam.

You can subclass AudioParameterFloat and reimplement
juce::String getName(int maximumStringLength)

This thread has more info on the topic:

1 Like

There’s unfortunately no guarantee the hosts will re-query the parameter names once the plugin has been loaded even if you call updateHostDisplay etc.

Thanks for referencing that thread…That’s what I was looking for.