mouse clicks on pp

saray12

2014-02-21 10:21:35

hello. I have just purchased a numark orbit and am wondering if this is possible. I need for the encoder wheel, a pp range or what have you be set that when it is turned up, that it has clicked a virtual on screen up button 50 times... and when i turn the wheel down it moves position and clicks another virtual on screen button down...
just not sure how to set up the rules and such, thank you...

saray12

2014-02-21 10:28:54

another option is because there is 2 options how to map the encoder, an absolute and a relative. In the other mode, there is just one midi message being sent when the jog wheel is being turned up and another when it is turned down... just to make it less sensitive is it possible for the mouse to be clicked maybe every 4th times that the message is sent... just because it is to sensitive currently to be of any use...

thanks again

DvlsAdvct

2014-02-21 23:17:54

Hey saray

First, what you want to do is use the Orbit Editor to change the knob to send a Relative message instead of an absolute message. That makes recognizing the knob being turned up and down easier.

If we go into relative mode, though, do you still want the mouse to send 50 clicks, but only every fourth signal from the wheel?

Jared

saray12

2014-02-22 01:12:29

no, i think just one mouse click on every 4th signal

DvlsAdvct

2014-02-22 16:09:52

If you have it click every 4 ticks of the wheels then it would look something like:

Code: Select all

Translator 1: Rotate and Click
Incoming Message: B0 30 41
Rules: g0=g0+1
if g0!=3 then exit rules, skip outgoing action
if g0>=4 then g0=0
Outgoing Message: Mouse Click
Now, this does not account for the position of the mouse, but we can set that once your resolution is solid.

saray12

2014-02-22 18:39:43

somehow i am not sure the rules are working... here is the position as well

x=1050 y=425

DvlsAdvct

2014-02-24 19:58:52

Is the mouse clicking something or moving the fader up, hence clicking down, moving and then releasing?

saray12

2014-02-24 21:57:14

no, the mouse is not moving, just clicking an onscreen button at that position. so just as the encoder wheel moves, it clicks... just need to make it click less then everytime the wheel moves, as it happens to fast... so just looking for clicks on every 4th or 5th click... have to see how it works.

DvlsAdvct

2014-02-25 00:52:23

Try amending the rules to be:

Code: Select all

Rules: g0=g0+1
if g0==0 then exit rules, execute outgoing action
if g0>=4 then g0=0

saray12

2014-02-25 03:48:44

Still seams not to be following the rules. Any other coding suggestions ? It is still clicking every time it gets a midi signal ...

DvlsAdvct

2014-02-25 16:25:26

That's because I'm pretty sure I'm an idiot. Long day yesterday.

Code: Select all

g0=g0+1
if g0>=4 then g0=0
if g0!=0 then exit rules, skip outgoing action

saray12

2014-02-26 05:57:47

well, even on your longest and worst day, you have me beat. Thanks so much it is working perfectly.

DvlsAdvct

2014-02-26 05:58:39

Awesome. Don't hesitate to let us know if there's any more help you need.

Jared