getValueNormalized()
-
This function seems to do the same as
getValue()
I've only tried it on a panel so far with a range of -100 to 100. -
It works for Knobs:
const var Knob1 = Content.getComponent("Knob1"); Knob1.setRange(-12, 1, 0.1); Knob1.set("saveInPreset", false); Knob1.setValue(-2.0); Console.print("Range: " + Knob1.getValue()); // -2 Console.print("Normalized: " + Knob1.getValueNormalized()); // 0.33
Haven't checked the other controls :)