• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. MIDIOutput
  4. MIDIOutput.clear()

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility

MIDIOutput.clear()

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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

Syntax

MIDIOutput.clear();

Parameters

None.

Specifications

Specification
Web MIDI API
# dom-midioutput-clear

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Sep 14, 2021, by MDN contributors

Related Topics

  1. Web MIDI API
  2. MIDIOutput
  3. Methods
    1. clear()
    2. send()
  4. Inheritance:
    1. MIDIPort
    2. EventTarget
  5. Related pages for Web MIDI API
    1. MIDIAccess
    2. MIDIConnectionEvent
    3. MIDIInput
    4. MIDIInputMap
    5. MIDIMessageEvent
    6. MIDIOutputMap
    7. MIDIPort
    8. Navigator.requestMIDIAccess()
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies