This reminds me of a cartridge I used to have on my Commodore 64 (don't remember the name off-hand) that came with a piano overlay that you actually sat on top of the C64 keyboard. The overlay was designed to press certain keys down on the keyboard when you hit the piano keys.
Great memories!
Inspired by this I have uploaded some sample piano notes (.ogg) for fellow hackers to use for their piano apps!
Which keyboard layout makes it easy to type ñ, {, and } on the same row as j, k, and l? I guessed Brazilian (based on the EN/PT/ES on your profile), but that doesn't seem quite right according to Wikipedia.
http://en.wikipedia.org/wiki/Portuguese_keyboard_layout#/med...
Stickiness is music is when the mind can predict what comes next without ever actually hearing what comes next before.
Why is the note D# mapped to R instead of E?
This is really cool. For anyone else who wants to run this on Mac OS X, try installing sox first (brew install sox). That's all I had to do and then I was up and running.
A quick melody from a favorite song that I transcribed: "D4 A4 D5 F5 D5 A4 D4 A4 D5 E5 D5 A4 G3 G4 A#4 D#5 A#4 G4 G3 G4 A#4 D5 A#4 G4 A3 E4 A4 D5 A4 E4 A3 E4 A4 C#5 A4 E4"
I love to see the command line put to good use like this!