Change Numbers from 0-100 in a Label
-
Hello, is it possible to change the Numbers from 0-100 in a Label when I use a Knob?
-
@meto396 Yes, but it's usually better to use LAF to display knob values.
-
@d-healey do you have an example how to do that?
-
@meto396 Here's how to use LAF with knobs/sliders. Doesn't specifically deal with displaying the value, but you're only a
g.drawAlignedText
call away from that. -
Something like this?
items: knbValue & lblValueconst var lblValue = Content.getComponent("lblValue"); // your label inline function onknbValueControl(component, value) { lblValue.set("text", value); StereoDelay.setAttribute(StereoDelay.DelayTimeLeft, value); // i've used the stereo delay, use your fx or instrument }; Content.getComponent("knbValue").setControlCallback(onknbValueControl);
If your knob has a 101 steps this should work.
-
@Mighty23 thanks this worked