Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
webmidi
Tame the Web MIDI API. Send and receive MIDI messages with ease. Control instruments with user-friendly functions (playNote, sendPitchBend, etc.). React to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).
Sending MIDI is easier than receiving it, but with UsbMidiKlik and some wiring and soldering you can build a MIDI interface based on an Arduino Uno.
https://github.com/TheKikGen/USBMidiKliK
I've built a small-medium sized project around this library and React on the front end:
https://github.com/djipco/webmidi
You can send and receive MIDI messages with this library both from the browser and within a Node context.
Along the lines of the React/browser lifecycle, I would be careful with listening to MIDI inputs.
You have to add guards for when an input no longer exists and be careful when creating listeners. React Hooks help with this but it's easy to create footguns if you're reading and sending MIDI data.