This application covers the basic structure of MIDI messages, as well as some details of the channel voice message types, including note-on/off, aftertouch, control change, pitch bend, and program change messages.
Download the application as a .zip archive, and uncompress it if necessary. It will probably be in your Downloads folder. You can run it from anywhere.