This is the code I have below, it only changes the text when I change the slider value. How can it change the code so it changes the text when the program loads straight away.
{
double freq = text.removeCharacters("Hz").getDoubleValue();
return (freq);
};
lpKnob->textFromValueFunction = [](double value)
{
double freq = (value);
return juce::String(freq) + "Hz";
};
thanks