The sound command outputs specific tones, none of which coinside with the notes on the piano, or with midi note numbers. If you want to output specific tones, use the FREQOUT command. Here is a link that will give you the note name, frequency and midi number for all the notes on an 88 note piano.

http://www.phys.unsw.edu.au/~jw/notes.html

Dave