Closed josephburnett closed 8 years ago
BinaryJS looks like a good candidate for getting bytes from node.js to the browser.
How to get the bytes from the browser to the audio card: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API
How to get the audio from jack to bytes in node.js: https://github.com/unclechu/node-jack-connector or https://www.npmjs.com/package/simplejack
This would amount to running Sonic Pi headless in a container, which doesn't need to be coupled with Sonic Jam. See https://github.com/xavriley/sonic-pi-docker for prior art running SP in Docker.
@5dac6b71ea2602f9c47bfd5a8a8296f3d7ba11d8 @902b429ce65480344d0cce71a5d4bbc0479fa5b5
If the audio from the server could be streamed to the client browser then the entire server could be remote. This opens up geographically separated jam sessions and easier setup (e.g. spinning up a docker container).