Second Mouse as Midi?
June 29, 2009 10:08 AM
Subscribe
I'm trying to get Ubuntu to see my USB mouse data as midi data--any ideas?
I have a PS/2 mouse that I use for all my primary mousing needs, and then I have a second USB mouse that I would like to use as a midi device. Failing that, if there was a way to get it to send key presses, that would be fine, too.
I'm running Ubuntu Studio, and I can't afford a legit pedal controller. Consider this idea (stomping on an old-skool iMac puck) to be a refinement on my
previous search for foot controller replacements.
posted by Squid Voltaire to computers & internet (3 comments total)
In any linux system my guess is all you'd need to do it write a little program to act as a "shim"--ie grab the /dev/mouse input, scale it to proper midi values etc. and output it. Then just set your midi program to listen to /usr/bin/my-mouse-to-midi-shim rather than the usual /dev/midi/pedalcontroller.
This program could be as simple as just 10 or 20 lines I would guess. (However you can guess how on-target my guess might be as I don't even know the proper names for the mouse or midi devices and can't be bothered to look them up, either . . . ).
It does look like someone has done something similar here: kontroll.
FWIW the magic google terms seem to be "mouse to midi".
posted by flug at 11:02 AM on June 29