validateMidiMessage
validateMidiMessage(
data,sysExEnabled):void
Defined in: src/validateMidiMessage.ts:23
Validate a single outbound MIDI message, throwing on malformed input or on a disallowed System Exclusive message.
Parameters
Section titled “Parameters”Uint8Array
sysExEnabled
Section titled “sysExEnabled”boolean
Returns
Section titled “Returns”void
Throws
Section titled “Throws”If the bytes are not a well-formed MIDI message.
Throws
Section titled “Throws”If a SysEx message is present but sysExEnabled
is false.