Midi notes to mouse coordinates

Hello !

I would like to have some help to modify the script « notes to mouse movement » :

A midi note triggers to move the mouse to specific coordinates

Hi and welcome to the Bome community!

Is there any logic or type of formula you would use to determine the mouse coordinates or would it just be a random mapping.

For a random mapping, something like this would work

Incoming: Note-ON MIDI CH1 set Note to pp

// Lets say note number is pp, qq=x and rr=y
// see if the note maps to anything
// default qq =-1
qq=-1

if pp==25 then qq=15
if pp==25 then rr=123

if pp==26 then qq=23
if pp==26 then rr=18
//...  add more note conditions here.
if qq<0 then exit rules, skip outgoing action

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

PS. I got your request for MIDIBuddy which would not be needed for this type of project. Now if you need to convert mouse coordinates to notes, then MIDIBuddy would be needed.

my goal is to convert single midi notes to click on specific position on screen

the screen will be showing xotopad : XotoPad - The MIDI controller for Windows touch-screens

which can trigger chords (normally it’s for windows touchscreen)

so it will not be random mapping.

for example C1 should trigger the first pad C#1 should trigger the second pad etc…

EDIT: Okay I tried and it seems to work : the click trigger the pad but the note is very short.
is there any solution to make the click or the note longer ?

Do you click on the pad? Maybe you need a click “down” action and then a delay with a click “up” action. Or maybe click “down” would be with note-on and click “up” with note off.

Maybe you can share the project file.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

‘Or maybe click “down” would be with note-on and click “up” with note off.’

great idea ! how can I do that ?

With 2 Translators. One clicks down at the desired position with note-on (Translator 1.0). The other sends click up on note-off (1.1).

See the attached example.

I set up my alias a follows. You will need to adjust it to point to your incoming keyboard.

You can learn more about aliases from this tutorial.

Notes-to-Click-Position.bmtp (2.1 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz