MIDIMessageEvent

open class MIDIMessageEvent(val type: EventType<MIDIMessageEvent>, init: MIDIMessageEventInit = definedExternally) : Event(source)

The MIDIMessageEvent interface of the Web MIDI API represents the event passed to the 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. Available only in secure contexts.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<MIDIMessageEvent>, init: MIDIMessageEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
external val data: Uint8Array<ArrayBuffer>?

The data read-only property of the MIDIMessageEvent interface returns the MIDI data bytes of a single MIDI message.

Link copied to clipboard
Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<MIDIMessageEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()