NOW LOADING

IMidiUniversalPacket


Common interface implemented by the MidiMessageXX runtime classes.
Namespace Windows.Devices.Midi2
Type Name IMidiUniversalPacket
Type WinRT Explicit Interface
IDL IMidiUniversalPacket.idl

The MidiMessage32, MidiMessage64, MidiMessage96, and MidiMessage128 classes all implement this interface. You can also implement it on your own classes for particular kinds of messages, and then send them with MidiEndpointConnection.SendSingleMessagePacket.

Properties

Property Description
Timestamp The 64-bit timestamp. For an incoming message, the service sets it when the message arrives. For an outgoing message, you set it to say when the message should be sent
MessageType A MidiMessageType value: the 4-bit message type, from 0x0 to 0xF, as defined in the UMP specification
PacketType A MidiPacketType value. Its number value is the count of 32-bit words in the packet

Functions

Function Description
PeekFirstWord() Returns the first word of the message. You can call it before you know the message’s type or size
GetAllWords() Returns all the message’s words as a list of 32-bit words
AppendAllMessageWordsToList(targetList) Adds all the message’s words to the end of the list, and returns how many were added
FillBuffer(byteOffset, buffer) Copies the message’s bytes into the buffer, starting at byteOffset, and returns how many bytes were written

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.