Classes
Members
-
input :Input
-
Description
The Input this channel belongs to
Details
-
number :number
-
Description
This channel's number (1-16)
Details
Methods
-
<protected> _parseEvent( e )
-
Parameters
Name Type Description e
Event
Details
-
getCcNameByNumber( number ) → {string|false}
-
Description
Returns the name of a control change message matching the specified number. Some valid control change numbers do not have a specific name or purpose assigned in the MIDI spec. In this case, the method returns
false
.Parameters
Name Type Description number
number An integer representing the control change message
Returns
Throws
Details
-
getChannelModeByNumber( number ) → {string|false}
-
Description
Returns the channel mode name matching the specified number. If no match is found, the function returns
false
.Parameters
Name Type Description number
number An integer representing the channel mode message.
Returns
Details
Events
-
allnotesoff
-
Description
Event emitted when an "all notes off" channel-mode MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "allnotesoff"
Details
-
allsoundoff
-
Description
Event emitted when an "all sound off" channel-mode MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "allsoundoff"
Details
-
channelaftertouch
-
Description
Event emitted when a control change MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "channelaftertouch"
value
number The value expressed as a float between 0 and 1.
rawValue
number The value expressed as an integer (between 0 and 127).
Details
-
channelmode
-
Description
Event emitted when a channel mode MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "channelmode"
controller
Object Name Type Description number
Object The number of the controller.
name
Object The usual name or function of the controller.
value
number The value expressed as a float between 0 and 1.
rawValue
number The value expressed as an integer (between 0 and 127).
Details
-
controlchange
-
Description
Event emitted when a control change MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "controlchange"
controller
Object Name Type Description number
Object The number of the controller.
name
Object The usual name or function of the controller.
value
number The value expressed as a float between 0 and 1.
rawValue
number The value expressed as an integer (between 0 and 127).
Details
-
keyaftertouch
-
Description
Event emitted when a key-specific aftertouch MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a
Uint8Array
.timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "keyaftertouch"
note
Object A Note object containing information such as note number, note name and octave.
value
number The aftertouch amount expressed as a float between 0 and 1.
rawValue
number The aftertouch amount expressed as an integer (between 0 and 127).
Details
-
localcontrol
-
Description
Event emitted when a "local control" channel-mode MIDI message has been received. The value property of the event is set to either
true
(local control on) offalse
(local control off).Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "localcontrol"
value
boolean For local control on, the value is
true
. For local control off, the value isfalse
.Details
-
midimessage
-
Description
Event emitted when a MIDI message of any kind is received by the
InputChannel
.Properties
Name Type Attributes Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
event.statusByte
number The message's status byte.
event.dataBytes
Array.<number> <nullable> The message's data bytes as an array of 0, 1 or 2 integers. This will be null for
sysex
messages.timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "midimessage"
Details
-
monomode
-
Description
Event emitted when a "mono/poly mode" MIDI message has been received. The value property of the event is set to either
true
(mono mode on / poly mode off) orfalse
(mono mode off / poly mode on).Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "monomode"
value
boolean The value is
true
for omni mode on and false for omni mode off.Details
-
noteoff
-
Description
Event emitted when a note off MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a
Uint8Array
.timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "noteoff"
note
Object A Note object containing information such as note number, note name and octave.
release
number The release velocity expressed as a float between 0 and 1.
rawRelease
number The release velocity expressed as an integer (between 0 and 127).
Details
-
noteon
-
Description
Event emitted when a note on MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "noteon"
note
Object A Note object containing information such as note number, note name and octave.
attack
number The attack velocity expressed as a float between 0 and 1.
rawAttack
number The attack velocity expressed as an integer (between 0 and 127).
Details
-
omnimode
-
Description
Event emitted when an "omni mode" channel-mode MIDI message has been received. The value property of the event is set to either
true
(omni mode on) offalse
(omni mode off).Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "omnimode"
value
boolean The value is
true
for omni mode on and false for omni mode off.Details
-
pitchbend
-
Description
Event emitted when a pitch bend MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "pitchbend"
value
number The value expressed as a float between 0 and 1.
rawValue
number The value expressed as an integer (between 0 and 16383).
Details
-
programchange
-
Description
Event emitted when a program change MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "programchange"
value
number The value expressed as an integer between 1 and 128.
rawValue
number The value expressed as an integer between 0 and 127.
Details
-
resetallcontrollers
-
Description
Event emitted when a "reset all controllers" channel-mode MIDI message has been received.
Properties
Name Type Description target
InputChannel The
InputChannel
that triggered the event.event.data
Array The MIDI message as an array of 8 bit values.
event.rawData
Uint8Array The raw MIDI message as a Uint8Array.
timestamp
number The moment (DOMHighResTimeStamp) when the event occurred (in milliseconds since the navigation start of the document).
type
string "resetallcontrollers"
Details