As a simple example I have a single knob (knob1) and in the Notify method the following code:
Code: Select all
case Knob_Changed: // doubleValue is the new VoltageKnob value
{
if(component == knob1)
{
if (doubleValue > 0.5)
{
knob1.SetValue(0.5, true);
}
}
}
break;
Is this just a limitation of the API or an I doing this wrong?
Basically, I need to restrict a knobs value to below some threshold but that threshold value changes while the code is running.
Should I be trying to change the Max and Min values on the fly?
Cheers,
Peter