Midi Note to Cursor Movement

Hi all,

I’m trying to use a piano midi keyboard to fully replace my mouse. The mouse clicks are done, but I’m struggling to get the cursor to move properly.

Example of what I’m looking for:
Pressing down middle C with any velocity, the mouse cursor would move left by 1 pixel, and would continue moving left by 1 pixel until the midi key is released (midi note up).

Of course this would be replicated for left, right, up, down and hopefully diagonal movement could be achieved by holding down two keys (left and up, for example).

What’s the best way to get this happening?

Thanks to the Bome team, I absolutely love this program!

Hi and welcome to the Bome community!

The below example should get you started. There are 4 translators as follows:

0.1 When C3 (note 60) is pressed, we start a continuous timer ‘Left Timer’ for every 40 ms
0.2 This timer moves the mouse left by one pixel every time it fires (every 40 ms)
0.3 When C3 (note 60) is released we kill the timer
0.4 When C3 (note 60) is released we click the left mouse button

I hope this is what you were looking for. You will need to point the keyboard alias ‘My Keyboard’ to your actual device.

MIDi-Note-Cursor-Movement-2023-03-20.bmtp (1.4 KB)

Steve Caldwell
Bome Customer Care


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