clear() {

    if (this._midiOutput.clear) {

      this._midiOutput.clear();

    } else {

      if (WebMidi.validation) {
        console.warn(
          "The 'clear()' method has not yet been implemented in your environment."
        );
      }

    }

    return this;

  }
Clears all MIDI messages that have been queued and scheduled but not yet sent.

**Warning**: this method is defined in the
[Web MIDI API specification](https://www.w3.org/TR/webmidi/#MIDIOutput) but has not been
implemented by all browsers yet. You can follow
[this issue](https://github.com/djipco/webmidi/issues/52) for more info.

@returns {Output} Returns the `Output` object so methods can be chained.