| Namespace | Windows.Devices.Midi2.Utilities.Messages |
|---|---|
| Type Name | MidiBytestreamToUmpMessageConverterState |
| Type | WinRT Runtime Class |
| IDL | MidiBytestreamToUmpMessageConverterState.idl |
This class remembers where the converter is, when you turn a continuous stream of MIDI 1.0 bytes into Universal MIDI Packet (UMP) words over several calls. A MIDI 1.0 message can be split across two calls, and the bytes can use features like running status, so the converter needs a place to keep track of what it has seen so far.
Create one and pass it to the MidiMessageConverter.ConvertMidi1CompleteMessageBytesToUmpWords overload that takes a converter state. Use the same state object for every call on the same stream, so partial messages and running status are handled correctly.
| Constructor | Description |
|---|---|
MidiBytestreamToUmpMessageConverterState() |
Creates a new, empty converter state |
| Property | Description |
|---|---|
Tag |
An optional string your app can use to label this object, for example with the endpoint or group it’s tracking |
This object is what remembers that you’re in the middle of a System Exclusive message between calls. Without it, the next buffer is read as if it were the start of a new message.
