DirectMusic Messages
Musical data passes through the DirectMusic performance engine in the form of messages. Most DirectMusic applications will not have to work directly with messages, but a basic knowledge of their structure can help you understand how DirectMusic works.
DirectMusic works with two different kinds of messages:
- Performance messages, based on the DMUS_PMSG structure. All sequenced data passes through the performance engine in this form. These messages contain detailed information about timing and routing of the data.
- Standard MIDI messages. These can be read from a MIDI file or device and either passed directly (thrued) to another device or converted to DMUS_PMSG format before being passed to the performance. Final output to the synthesizer is also in the form of MIDI messages.
The following topics give more information about messages and how they are routed: