You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some comments: Yes, I think the PortMidi API could run in Emscripten with a WebMIDI backend, but it might be even better to rewrite the API in javascript. PortMidi is optimized for real time by avoiding dynamic memory allocation and using lock-free queues between OS callbacks or MIDI threads and the application thread. Javascript in a web environment is much less real-time oriented and the programming model is cooperative multi-threading, so a lot of the structure of PortMidi does not really apply. Also, for javascript, it might seem strange to be encoding midi messages into a single PmMessage, which is really just an int32. On the other hand, an Emscripten version would allow applications in C++ to use PortMidi and be compiled to run in browsers. I'd be happy to discuss further with anyone interested in making PortMidi run in browsers.
Would be pretty cool to have, other libraries like
libremidi
have an Emscripten backend too.The text was updated successfully, but these errors were encountered: