Back to Content

MIDIOutput: clear() method

files/en-us/web/api/midioutput/clear/index.md

latest369 B
Original Source

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

The clear() method of the {{domxref("MIDIOutput")}} interface clears the queue of messages being sent to the output device.

Syntax

js-nolint
clear()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}