Defined step points in a stepped knob
-
Is it possible to make a stepped knob that has defined points like this:
12000
16000
18000So total steps are 3 but the step points are like above.
I think the current stepped knob has 1, 2, 3..etc. setup. only
-
@Steve-Mohican Yes. Make a knob with the values 0-2 and step size of 1. Make an array with 3 elements with values 12000, 16000, and 18000. In the knobs callback use its value as the array index.
-
If (value == 1)
{
...... xxx.setAttribute(xxx.xxxxx, 2899);
}
If (value == 2)
{
}
If (value == 3)
{
}
If (value == 4)
{
}
Does i t work that way with knob? -
@yall :anxious_face_with_sweat:
const knobValues = [12000, 16000, 18000]; inline function onKnob1Control(component, value) { local newValue = knobValues[value]; x.setAttribute(attribute, newValue); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control);
-
-
@Steve-Mohican You need to use custom graphics or LAF for that.