The MIDI Out port which data gets sent to, see MidiAccess class.
Whenever the MidiOut attempts to send MIDI data, it does some validation that there is a MIDI port actually connected. If not then it throws an error.
Setting this property to true means that the MidiOut bypasses throwing that error. This can be useful when the MidiOut may regularly be switching outputs that it sends data to, and that it may be valid for it to not be connected to a port at times.
This event fires when the MidiOut finishes.
Returns true if the MidiOut has been instructed to stop everything by the finish()
method.
Provides a way of identifying MidiOut so it can be easily retrieved later.
Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.
This method accepts an IMidiMessage object, which it converts to a MIDI byte array to send to the connected MIDI port.
The IMidiMessage object to be converted and sent out.
Calls the stop() method of all notes which have been added to the MidiOut that meet the passed in criteria.
Provides a way for setting the ref through a chained function call. For example:
clock.addChild(new MidiOut(port).withRef('output'));
The calling object.
The ref to set on the object.
Generated using TypeDoc
The MidiOut class is an implementation of IMidiOut, which takes MIDI messages and sends them on to a connected MIDI port.