-
hyrfilm
posted in news • read more

Hi everyone
Just wanted to let you know that there is now a port of libpd that runs in your browser.
libpd-wasmSo far, you can use it in 2 ways, if you just want to mess around with your patches you can check out the playground:
https://hyrfilm.github.io/libpd-wasm/Or if you want to use it as a library:
(similar to how you would embed libpd)
https://github.com/hyrfilm/libpd-wasmBundled objects:
- vanilla pd (all objects)
- extras (all objects)
- cyclone (99%ish of all objects)
- ELSE (97%ish of all objects)
The C-code was compiled to a WASM bundle that gets wrapped in a WebAudio node.
To use it from JS/TS you would do this:npm install libpd-wasm

Peace out!

-
hyrfilm
posted in extra~ • read moreHi!
I hope this is the right forum for this. Anyway, I thought I'd share a small library called Patchbay I wrote for communicating with pd (max / msp / others should also work but haven't been tested).
You can download it here:
http://github.com/hyrfilm/patchbay
Check out the hello_world example. Basically you can easily bind stuff, like whatever you want in pd to functions or variables in python. All the events received are also recorded so you can record an hour of stuff happening in pd which your program reacts to, and then replay it (can also be useful if you want to render your code as a movie).
The project is in a kind of early stage but... I'm adding more stuff in patchbay as I'm using it. So yeah, that's that.
Oh, one more thing:Yeah sure, you COULD use it as a way to trigger sound stuff in pd to python. But I mostly use it as a way to easily animate stuff. Say you have a program that draws something on the screen. Now you can just create keyframes and such in pd to control it.... etc etc

Ok, peace out
hyrfilm