run gen~ in web browser?
Hi!
Currently it's possible to export gen~ codes to VST, iOS, Bela, rasberry pi. I wonder if anybody has tried to export it to run in web browser.
This would be very useful for creating interactive applications that can be be used by multiple people at the same time (everyone has a web browser on their computer) I know there is Mira, but it's just mirroring a patch to a web browser...
I think, contemporary browsers have no (yet?) implemented mechanisms for dealing with custom DSP code, however you can use JavaScript to synthesise and/or analyse (even FFT) sounds.
Hi. All of those export targets mentioned above work with C++, which is what gen~ exports. To run in a browser that would have to be converted to JavaScript and run in a ScriptProcessorNode for audio synthesis. There's probably a way to do this using e.g. Emscripten (which can transpile C++ into JS) but there may be a quite significant amount of intermediate architecting needed to get it all working. Depending on what you're actually trying to achieve there might be an easier way.