Reply To: uiSlider Invert Modulator Value From MIDI Value

Home Forums General Using Ctrlr uiSlider Invert Modulator Value From MIDI Value Reply To: uiSlider Invert Modulator Value From MIDI Value

#13832
King PP
Participant
    • Topics: 12
    • Replies: 25
    • Total: 37

    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.

    Ctrlr