Jump to content

MESSAGE

From EDM2

This structure contains fields for the MIDISendMessages function. It defines a single MIDI message, including its timing and the source instance from which it originates. The structure uses a union to allow the MIDI data to be accessed as a single 32-bit value, a status byte followed by data bytes, or a raw byte array.

 typedef struct {
   ULONG     ulSourceInstance;  /*  Source instance. */
   ULONG     ulTime;            /*  Time for sending message. */
   ULONG     ulTrack;           /*  Reserved. */
   union {
     ULONG       ulMessage;         /*  MIDI message. */
     struct {
       BYTE          bStatus;           /*  First byte of message. */
       BYTE          abData[3];         /*  The rest of the message. */
     } bytes;
     BYTE        abData[4];         /*  MIDI message. */
   } msg; /*  MIDI message. */
 } MESSAGE;
 
 typedef   MESSAGE   * PMESSAGE ;