Live MIDI input to JSON?
-
21-01-2021 - |
문제
I'm wondering if there are any libraries to read live MIDI input from a USB device and translate that data to a web-friendly format like JSON. I've come across a few that can read MIDI files, but this needs to be directly from a USB device. No sound needs to be generated, just the data from the MIDI device. Eventually the goal is to transfer live MIDI data via WebSockets. I've come across Pygame, but I'm not sure if that'll do the trick. Any suggestions?
다른 팁
I made a NPAPI browser plugin that sends MIDI messages to Javascript.
Currently the MIDI messages are sent as string with comma separated values (notenumber,velocity), but you can easily convert that to JSON.
The new Web MIDI API allows for MIDI input in JavaScript.
제휴하지 않습니다 StackOverflow