clavier

clavier is a program for the X window system that emits MIDI
note-on/note-off messages when you press the keys of a on-screen piano
keyboard with the mouse. You can also use your computer keyboard,
like in a tracker program.