Early C++ code sample from Slim's Magnetic Music MIDI Library