My first attempt at building a MIDI Out controlled by a button

Wanted a simple MIDI Out for sending MIDI messages to a drum machine. The button can be used to toggle the messages on/off.

http://www.tigoe.com/pcomp/code/communication/midi/ was immensely helpful.