Takes (as a parameter) a Linux event device with a wheel, let’s say a Griffin Powermate, and creates a MIDI output in ALSA which you can plug in to a synth.

Easily modified to generate change control requests instead of notes, which is left as an excercise to the reader.