miRackModular / Rack

An optimised fork of VCVRack virtual modular synthesizer primarily for Raspberry Pi, Tinker Board and similar boards.
https://mifki.com/blog/introducing-mirack-an-optimised-fork-of-vcvrack-for-raspberry-pi-and-others/
BSD 3-Clause "New" or "Revised" License
155 stars 12 forks source link

Web version source code ? #18

Open diimdeep opened 4 years ago

diimdeep commented 4 years ago

Tried to search for emscripteen in repo, didnt find anything.. Are you planning to improve web version? Url encoded .vcv file would be killer feature.

Catsvilles commented 4 years ago

Wow, that would be amazing, especially using the web version with the WebAssembly!

michaelpalumbo commented 4 years ago

bump! I'd love this as well. I'm trying to get it going from a fork of this repo with minimal success

pronvit commented 4 years ago

Hello,

All the code is in this repo. To build, you need to set WEB environment variable and just run make dep / make, like so (on osx/linux) "WEB=1 made dep". There may be some paths to emscripten needed to be set, I'm not sure. I believe it is compiling into WebAssembly.

Unfortunately when working on the web version, I discovered that audio processing in web browsers still had issues, and I was experiencing audio artefacts even with simple patches. I remember discussions that audio processing in browser is not running at high/realtime priority (at least in browser/os combinations I was using). This is why I stopped developing the web version. Maybe this issue (and some other smaller ones) has already been resolved in current versions of browsers, I don't know.

If anyone wants to continue this work, feel free to ask any specific questions about the build process or the code, I'll help with what I still remember.

Catsvilles commented 4 years ago

@pronvit Should be better by now, we have AudioWorklets and WebAssembly is getting more and more support.