Code Libraries: Protocol Support

WebMidi.js

The WebMidi JavaScript library will help you tame the lower-lever HTML5 Web MIDI API. It will let you send and receive MIDI messages with ease, control instruments with user-friendly functions (playNote, sendPitchBend, etc.) and react to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).

OSC

The osc.js library implements the Open Sound Control protocol. It lets you read and write OSC-formatted binary message via plain JavaScript objects. It can receive OSC data in different ways: serial port APIs such as node-serialport or chrome.serial, socket APIs such as Node.js dgram or WebRTC data channels, WebSockets or binary XHR messages should all work.