Thank you for the comments. Needless to say, or at least, I hoped, I can't really play the piano. Well, not like that. It's just a bit of a trick. I showed it here because I thought it looks very nice to see a piece played out on a keyboard. It is also to demonstrate what my new extension is capable of.
Some of you are very close with guessing. blue_chu_jelly, the music pieces are converted
from MIDI files into IT (Impulse Tracker, which is a MOD type format). They're also MO3 compressed which changes the samples into MP3, which makes the files much smaller. Freelancer Studios, it would be tremendously difficult to extract note pitch from wave output, especially with instruments that have no clear wave form. Instead, blue_chu_jelly, syth184 and Dinsdale are closer to the truth.
In the extension I've used BASSMOD, which is a stripped version of BASS. This DLL is also able to report, for each instrument in the song, what note is played. It comes with limitations: features like portamento, retrigger and arpeggio are not detected. Also, the note duration is not known and it cannot read ahead (although this can be solved by placing silent instruments in the song's patterns). The notes are currently 'sticky' (they wait until any new note is played).
kiwi85 / hotshotscott: finger and hand placement is mightily more difficult to figure out. There is often more than one way to place the hands and fingers. And it often isn't even possible - some MIDI files have been edited to allow simultaneous notes being played that no hand (at least no human one) can reach.
I'll tell a little secret: this toy is able to play any MOD/S3M/XM/IT file. Press F12 to unlock the features. It can display at maximum 7 instruments. Keep in mind the limitations mentioned above. Also, each keyboard shows only 6 of the 10 octaves, so sometimes notes are not visibly played. As you will see, you can change the playback mode of each keyboard.
If you wish to play any MIDI in this tool, you first have to convert it to IT. This can be done using the (free) Modplug Tracker
. Just open a MIDI song and save it again as type IT, and you should be able to open it in La Piccola Pianola (hit F12 then F3 to load the song).