For the past few weeks I’ve been trying to set up a function that makes it so if my mouse is in a certain part of my screen, it skips the outgoing action of moving to a part of my screen that I’ve assigned with the mouse position action. However, I haven’t been able to figure it out. Can someone tell me what im doing wrong here?
Marked as spam
Hi, in your incoming preset change translator, you are setting the location of the mouse to position to gx,gy, but I don’t see where you have assigned these two global variables any values. Global variables will have a default value of 0 (zero) if not set, so you mouse position should move to location 0,0 on you primary monitor upon activation of that preset? Is this not working? Position 0,0 would be the top left corner of your primary monitor.
For the note-on translator, you are using the value of pp (which is a local variable) for determining whether to move the mouse or not. Local variables are “undefined” unless you set them so it will just depend on what the undefined value of pp happens to be at the time the translator detects the incoming note. You can assign a value of pp based on the note number channel or velocity of you would like, however the value of pp will be only 0-15 if channel, or 0-127 if note number of velocity. Some controllers only put out a fixed velocity of 127 for note-on and 0 for note-off. However it looks like you really don’t care of the value of the incoming note for setting the mouse position so I’m not quite sure why you have conditions defined here.
Marked as spam