PdWebCompiler
allows to run PureData patches in web browsers using Web Audio technologies. This tool stands out from other approaches like hvcc and WebPd because it compiles the libpd source, this is possible mainly because of the work of claudeha. You can compile any PureData vanilla patch and most of the externals.
The project is very recent, so can be very hard breaking changes for sometime.
Library | Not Supported | Number of Objects |
---|---|---|
else | sfont~ , plaits~ , sfz~ |
509 |
cyclone | - | ± 197 |
convolve~ | - | 1 |
timbreIDLib | - | 109 |
So, for now, we have more than 800 supported externals objects.
- Note: Some objects, mainly due to dynamic libraries or GUI componets, are not supported yet. Feel free to submit a Pull Request to add support for them.
To make your patch available online, follow these steps:
- Linux:
apt install python3.11
,dnf install python3.11
, etc. - MacOS: Download and install Python from the Python website.
- Windows:
winget install -e --id Python.Python.3.11
or go to Python website
pip install pd2wasm
pd2wasm --patch ./YOUR_PATCH.pd --server-port 8080
Join us in contributing to this repository! Explore the primary areas for your valuable contributions:
- The
pd2wasm/lib/
folder, which contains files with special steps for compiling certainexternals/libraries
. - The
pd2wasm/src/template.c
, used to PdWebCompiler to build themain.c
file. - The
pd2wasm/resources/PdWebCompiler.py
, which configures themain.c
file.