range
-
Hi guys!
I am trying to make a custom LAF on a knob.
It is going to be a slider, I have a horizontal line and a short vertical line on the horizontal one which is the slider itself.
I want to use the obj.value to drive the vertical line but I just couldn't figure out how to convert it to the horizontal line's range.
For example: the knob's range 10-700 Hz --> 128 pixel wide -
@darkInteger Use the normalised value instead
-
@d-healey THX!!!
Any hint how?
Should I use Math.to0To1? -
@darkInteger The laf object provides the value. Use
Console.print(trace(obj));
and all will be revealed. -
@d-healey THX for the help, got it working!!!