Back to Content

MIDIAccess: sysexEnabled property

files/en-us/web/api/midiaccess/sysexenabled/index.md

latest707 B
Original Source

{{securecontext_header}}{{APIRef("Web MIDI API")}}

The sysexEnabled read-only property of the {{domxref("MIDIAccess")}} interface indicates whether system exclusive support is enabled on the current MIDIAccess instance.

Value

A boolean value.

Examples

The {{domxref("Navigator.requestMIDIAccess()")}} method returns a promise that resolves with a {{domxref("MIDIAccess")}} object. Printing the value of sysexEnabled to the console returns a boolean value, which is true if system exclusive support is enabled.

js
navigator.requestMIDIAccess().then((access) => {
  console.log(access.sysexEnabled);
});

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}