identify pads in controller scripts

Post Reply New Topic
RELATED
PRODUCTS

Post

hello everyone,

i wrote a custom controller script for my lpd8 to use the pads to trigger on/off states in bitwig. to that end i configured the lapd9's pads to use CCs below 100 and the knobs to use CCs above 100.

in my controller script i'm basically doing

Code: Select all

function onMidi(status, data1, data2){
        ...
        if(data1 < 100){
            userControls.getControl(index).set(data2 > 0 ? 128 : 0, 128);
        } else {
            userControls.getControl(index).set(data2, 128);
        }
        ...
}
this works, but i was wondering if there was some discrete or heuristic way to decide whether the currently handled signal originated from a pad or a knob.

Post Reply

Return to “Controller Scripting”