plugdata-team / plugdata

Pure Data as a plugin, with a new GUI
https://plugdata.org
GNU General Public License v3.0
1.37k stars 60 forks source link

Compiling PlugData with Emscripten? #331

Open Jonathhhan opened 1 year ago

Jonathhhan commented 1 year ago

I wonder if that is possible (and I guess it likely is)... At least PD (libpd) runs with Emscripten and JUCE too. Recently I worked on optimizing Open Frameworks for Emscripten, I am not an expert, but maybe I could help here and there...

timothyschoen commented 1 year ago

I wasn't aware that JUCE could run with emscripten! It would be very cool to make that work.

I have created an emscripten audio app once with iPlug2, but the iPlug2 build system took care of all the hard parts, so this will definitely be a challenge for me.

I don't have time for this right now, but I want to look at this eventually. If you have time to look at this, it would be cool, otherwise I'll have a look later. I can answer any questions you have about plugdata's build system and structure if needed. You'll probably have to disable the [sfont~] object at least.

timothyschoen commented 1 year ago

Looks like you need a fork of JUCE, like this one:

https://github.com/Dreamtonics/juce_emscripten/

So then I'd probably also have to modify some things because the JUCE API has changed since then.

Jonathhhan commented 1 year ago

Thank you. Its also not my priority at the moment, just had the idea a few days ago (and maybe will come back to it)... And I really like the PlugData approach.

porres commented 1 week ago

libpd now compiles with emscripten since .55