I have a slider. I want to set the slider MIN MIDI VALUE and MAX MIDI VALUE in LUA. Are there som example code I can look at?
local control = controls.get (4) – patch number
local valueObjects = control:getValues ()
local ctrlValue = control:getValue (“”)
local message = ctrlValue:getMessage ()
ctrlValue:setRange (0, 100,0, true) – set both display and MIDI min max
if bankGroup[value][3] > 128 then
ctrlValue:setMin (129) — set min display value
message:setMax (256) – set max MIDI value
else
ctrlValue:setMin (1) – set min display value
message:setMax (128) – set max MIDI value
….
1 Like
Thank you. It works exactly as I wanted it to work
1 Like