Class MIDIMessageEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The MIDIMessageEvent interface of the Web MIDI API represents the event passed to the MIDIInput.Midimessage event of the MIDIInput interface. A midimessage event is fired every time a MIDI message is sent from a device represented by a MIDIInput, for example when a MIDI keyboard key is pressed, a knob is tweaked, or a slider is moved.
[Value("MIDIMessageEvent")]
public class MIDIMessageEvent : Event
- Inheritance
-
MIDIMessageEvent
- Inherited Members
Remarks
Constructors
MIDIMessageEvent()
public MIDIMessageEvent()
MIDIMessageEvent(string, MIDIMessageEventInit)
The MIDIMessageEvent() constructor creates a new MIDIMessageEvent object. Typically this constructor is not used as events are created when a MIDIInput finishes receiving one or more MIDI messages.
public MIDIMessageEvent(string type, MIDIMessageEventInit eventInitDict = null)
Parameters
typestringeventInitDictMIDIMessageEventInit
Remarks
Properties
Data
The data read-only property of the MIDIMessageEvent interface returns the MIDI data bytes of a single MIDI message.
[Value("data")]
public Uint8Array? Data { get; }