Midi controller mystery

mimi2000's icon

Can anyone advise how to get a dial to behave like this using when midi learn?:

I need a dial in Max to respond to incoming midi data coming from an external midi controller - I just want the dial to recognise whether the incoming cc data value is increasing or decreasing (I think this is cc96 and cc97). I don't need the incremental values to 127.

I have done this myself in another program (Traktor) using a BCR2000 and Midi learn. I assign a knob to the jogwheel in Traktor, and even though the readout on the BCR says 127 or 0, I can continue rotating the knob and the software will continue responding.

The Max dial behaves as I want with the mouse OK (ie the dial behaves as an endless rotary knob) and also using Touch OSC is fine too, but when using a midi controller knob the max dial will only make one full rotaion (127). I need it to just recognise the direction the controller knob is turned so the dial will behave accordingly as an endless rotary dial.

Any help appreciated

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

This will output a 1 if increasing and a -1 if decreasing. Hope this helps!

mimi2000's icon

Thanks very much! (Sorry for the late reply)

Lorenzo De Silva's icon

hi @MIMI2000 could you resolve the issue? i know it's quite a long time but i'm having the same problem