Package-level declarations

Types

Link copied to clipboard
open class MIDIAccess : EventTarget

The MIDIAccess interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices. Available only in secure contexts.

Link copied to clipboard
open class MIDIConnectionEvent(val type: EventType<MIDIConnectionEvent>, init: MIDIConnectionEventInit = definedExternally) : Event

The MIDIConnectionEvent interface of the Web MIDI API is the event passed to the statechange event of the MIDIAccess interface and the statechange event of the MIDIPort interface. This occurs any time a new port becomes available, or when a previously available port becomes unavailable. For example, this event is fired whenever a MIDI device is either plugged in to or unplugged from a computer. Available only in secure contexts.

Link copied to clipboard
open class MIDIInput : MIDIPort

The MIDIInput interface of the Web MIDI API receives messages from a MIDI input port. Available only in secure contexts.

Link copied to clipboard

The MIDIInputMap read-only interface of the Web MIDI API provides the set of MIDI input ports that are currently available. Available only in secure contexts.

Link copied to clipboard
open class MIDIMessageEvent(val type: EventType<MIDIMessageEvent>, init: MIDIMessageEventInit = definedExternally) : Event

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.

Link copied to clipboard
Link copied to clipboard
interface MIDIOptions
Link copied to clipboard
open class MIDIOutput : MIDIPort

The MIDIOutput interface of the Web MIDI API provides methods to add messages to the queue of an output device, and to clear the queue of messages. Available only in secure contexts.

Link copied to clipboard

The MIDIOutputMap read-only interface of the Web MIDI API provides the set of MIDI output ports that are currently available. Available only in secure contexts.

Link copied to clipboard
open class MIDIPort : EventTarget

The MIDIPort interface of the Web MIDI API represents a MIDI input or output port. Available only in secure contexts.

Link copied to clipboard
sealed interface MIDIPortConnectionState
Link copied to clipboard
sealed interface MIDIPortDeviceState
Link copied to clipboard
sealed interface MIDIPortType

Properties

Functions

Link copied to clipboard
inline suspend fun MIDIPort.close(): MIDIPort

The close() method of the MIDIPort interface makes the access to the MIDI device connected to this MIDIPort unavailable.

Link copied to clipboard
inline suspend fun MIDIPort.open(): MIDIPort

The open() method of the MIDIPort interface makes the MIDI device connected to this MIDIPort explicitly available.