dfhagai
HD
Hi,
What would be the best practice to create an endless knob?
(I'm using Knobman for the graphics)
Thanks!!!
HD
What would be the best practice to create an endless knob?
(I'm using Knobman for the graphics)
Thanks!!!
HD
on init
declare ui_slider $endless_knob(0, 11)
declare ui_label $endless_label(1, 1)
declare $endless_ratio := 1
end on
on ui_control($endless_knob)
if ($endless_knob=11)
inc($endless_ratio)
$endless_knob := 1
end if
if ($endless_knob=0)
dec($endless_ratio)
$endless_knob := 10
end if
set_text($endless_label,$endless_knob+(10*$endless_ratio))
end on