Home › Forums › General › Using Ctrlr › uiSlider Invert Modulator Value From MIDI Value › Reply To: uiSlider Invert Modulator Value From MIDI Value
October 1, 2013 at 10:12 am
#13832
Hi, can you implement the below per knob / slider? if so where do i add the code & make sure it works for particular knobs / sliders?
Thanks, best….. Pat.
I use this for converting to opposite values, works with decimals & hex as input.
function invertNumber(input) local range = 127 local output = range + (input*-1) return (output) end
Then just call it whenever you need it somewhere.