novation sl encoders to control dials in Max

caunterstrike's icon

hello i am trying to make the 8 rotary encoders on a novation remote 25 sl control the various dials in a max patch i am using a midiin object and midiparse object to get the control change value and an unpack object. however moving an encoder on the midi keyboard simply makes the dial glitch. i think the problem may be because the encoders do not have a limit i.e they can be turned an infinite amount. can anybody suggest a workaround for this problem? thanks in advance

Tj Shredder's icon

Rotary encoders do not create values directly, they tell you simply in which direction you moved them. Out of the numbers form such controllers you have to calculate your values.
I have some abhaXions in my St.ools collection which do that. (dtlin for example) Basically, use accum and interpret values higher than 63 as negative values... (127 means -1, 126 means -2...)
easier than midiin and midiparse is ctlin btw...

Stefan

EMV's icon
Max Patch
Copy patch and select New From Clipboard in Max.

This is one way to do it: