This content originally appeared on Bram.us and was authored by Bramus!
If you don’t want to directly use the Web MIDI API, you can use WEBMIDI.js
WEBMIDI.js makes it easy to interact with MIDI instruments directly from a web browser or from Node.js. It simplifies the control of physical or virtual MIDI instruments with user-friendly functions such as
playNote()
,sendPitchBend()
orsendControlChange()
. It also allows reacting to inbound MIDI messages by adding listeners for events such asnoteon
,pitchbend
orprogramchange
.
Works like a charm. Initialize it, and start listening for events.
See the Pen WebMidi.js by Bramus (@bramus) on CodePen.
In the browser you can include a self-registering script to get it. ESM and CJS flavors are also available.
This content originally appeared on Bram.us and was authored by Bramus!
Bramus! | Sciencx (2022-01-07T16:25:40+00:00) WEBMIDI.js — Send and receive MIDI messages with ease. Retrieved from https://www.scien.cx/2022/01/07/webmidi-js-send-and-receive-midi-messages-with-ease/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.