MidiInPort.MessageReceived | messagereceived event

[This documentation is preliminary and is subject to change.]

Occurs when the MidiInPort receives data.

Important  

The WindowsPreview.Devices.Midi API are preview API and are not included in the Windows Software Development Kit (SDK). The API are distributed as a NuGet package. See WindowsPreview.Devices.Midi for info on how to download and install the NuGet package in your project.

WindowsPreview.Devices.Midi API require Windows 8.1 Update and later.

Syntax


function onMessageReceived(eventArgs) { /* Your code */ }
 
// addEventListener syntax
midiInPort.addEventListener("messagereceived", onMessageReceived);
midiInPort.removeEventListener("messagereceived", onMessageReceived);
 
- or -

midiInPort.onmessagereceived = onMessageReceived;


Event information

Delegate TypedEventHandler<MidiInPort, MidiMessageReceivedEventArgs>

Remarks

Apps should subscribe to this event to handle the input messages.

If accessing any part of the message results in an exception, it can be assumed that the MidiInPort has been disconnected from the device.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Namespace

WindowsPreview.Devices.Midi
WindowsPreview::Devices::Midi [C++]

Metadata

WindowsPreview.winmd

See also

MidiInPort

 

 

Show: