JS API Reference MIDIEvent class

MIDIEvent class

Extends: RNBOBaseEvent

Implements: IRNBOMIDIEvent

MIDIEvent class to send MIDI Events into a RNBO Device or receive events from a Device.

Remarks

Refer to our article on Sending and Receiving MIDI to learn more.

Signature

export declare class RNBOMIDIEvent extends RNBOBaseEvent implements IRNBOMIDIEvent 

Constructor

Constructs a new instance of the RNBOMIDIEvent class

Parameters

ParameterTypeDescription
timeMillisecondTime
portnumber
dataMIDIData
eventTargetRNBOEventTarget

Properties

channel

read-only

Type: number

The MIDI Channel

data

read-only

Type: MIDIData

The MIDI Data - see MIDIData

length

read-only

Type: number

The amount of actually set bytes in the MIDIData of the event

port

read-only

Type: number

The MIDI Port

status

read-only

Type: number

type

read-only

Type: RNBOEventType.MIDIEvent

The type of the event. See EventType

Methods

serialize

Parameters

None.

Returns:

IRNBOMIDIEvent