NOW LOADING

IMidiMessageReceivedEventSource


Interface which contains the event definition used by any class which raises the `MessageReceived` event
Namespace Windows.Devices.Midi2
Type Name IMidiMessageReceivedEventSource
Type WinRT Explicit Interface
IDL IMidiMessageReceivedEventSource.idl

Interface which contains the event definition used by any class which raises the MessageReceived event. This is defined in an interface so that message processing plugins and the MidiEndpointConnection type can be used interchangeably in an event handler.

Events

The MessageReceived event is raised synchronously, and needs to be handled quickly and efficiently by the calling application.

Applications are typically much faster than devices at handling messages. However, failing to drain the incoming message queue fast enough can result in transmission errors. With MIDI 2.0 there is no upper performance limit on devices, and USB 3 and Network MIDI devices, among others, are capable of transmitting a large number of messages in a very short period of time.

If you need to do long-running processing of incoming messages, add them to your own incoming queue and have them processed by another application thread.

Event Description
MessageReceived(source, args) The main message received event definition.

Methods

Method Description
GetEndpointConnectionSource() Returns the IMidiEndpointConnectionSource that owns this message source.

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.