Internal MIDI synthesizer devices and MIDI output ports are both MIDI output devices. They use the same entry-point function and receive the same messages. However, instead of sending MIDI data to an output port, an internal synthesizer device converts the MIDI data into music or sound.
To write a MIDI output driver, first create the initialization part of the driver—the part that includes the LibEntry, WEP, and DriverProc entry-point functions. Next, create the modMessage entry-point function and the rest of the support code required to implement the driver. Be sure to process all of the required messages for MIDI output device drivers. For each message you process, use the information provided by the reference at the end of this chapter to ensure you did everything required to correctly process the message.
Note:
For information on the content of MIDI data, see the MIDI specification published by the International MIDI Association.