ES Modulees for Web MIDI API
npm install x-webmidi - What is MIDI? -> MIDI@wikipedia
- What is Web MIDI API? -> Web MIDI API@W3C
- NoteOn
- NoteOff
- Program Change
- PitchBend
- Sustain
- Modulation
- AllSoundOff
- ResetAllController
- AllNoteOff
``shell`
$ git clone https://github.com/ryoyakawai/x-webmidi.git;
- import xwebmidi.js
- create an instance of xwebmidi.js
- create div element and tell xwebmidi.js that where to add pull down menu input/output device to provide.
- add eventlistener to handle for MIDI input, and send MIDI message against MIDI OUTPUT
html
INPUT:
OUTPUT:
`Note:
Second parameter of initInput()/initOutput() is
NOT REQURED` parameter. And the parameter for to specifying the class where to update when MIDI message is incoming/outgoing.