This article is from the Piano General Topics FAQ, by Isako Hoshino rmmpfaq@yahoo.com with numerous contributions by others.
The MIDI files sequentially number keys from 1 at the bottom
to 88 at the top:
A1 A#2 B3 C4 ... B87 C88
 
Continue to: