in reply to Re^3: listen to a midi keyboardin thread listen to a midi keyboard
But to address the OP's question, if you can get at MIDI-format data, there's MIDI to convert it into Perl data structures.
"Lilypond isn't exactly pretty"
I'm glad that we are d'accord.
«The Crux of the Biscuit is the Apostrophe»