Overview of WEBMIDI.js Core Classes
masterWEBMIDI.js provides a set of pre-instantiated core classes to manage MIDI interactions. Most developers will interact with these singleton instances rather than instantiating them manually.
Core Classes
WebMidi: The main entry point for the library.Input: Represents a MIDI input device.InputChannel: Represents a specific MIDI input channel.Output: Represents a MIDI output device.OutputChannel: Represents a specific MIDI output channel.Message: Represents a MIDI message.
Manual Instantiation
Unlike the core classes, the following classes must be instantiated by the developer:
Note: Used to store and represent a musical note.Forwarder: Used to forward messages from anInputto anOutputautomatically.