sebpiq / WebPd

Run your Pure Data patches on the web.
GNU Lesser General Public License v3.0
936 stars 88 forks source link

It should be easy to directly connect the output of a patch to other Web Audio nodes outside of WebPd #82

Closed sebpiq closed 8 years ago

sebpiq commented 9 years ago

for example patch.out.connect(faustEffect)

meta-meta commented 8 years ago

This is what I came here for. Glad it's on the horizon. How much thought has been put into an implementation? I wouldn't mind taking a crack at it.

sebpiq commented 8 years ago

This is actually pretty straightforward. This just made me think that there is a bug here which needs fixing.

sebpiq commented 8 years ago

done 3938dbed10d5c28c3a81fe54a9074fe943922132

See : https://github.com/sebpiq/WebPd#connecting-a-patch-outlet-to-an-external-web-audio-node

There is still a bug if the patch has several [outlet~] objects though : https://github.com/sebpiq/pd-fileutils/issues/28

meta-meta commented 8 years ago

whoa that's some turnaround time! I was confused for a second when I couldn't find the issue in the open issues list. :astonished: I spent the day getting positional audio working properly in aframe.io - next up, PD in WebVR!

sebpiq commented 8 years ago

Awesome :) keep me updated that sounds great!!!

And beware with #93 !

meta-meta commented 8 years ago

well, I finally got around to trying this out. Here's my initial progress: https://meta-meta.github.io/aframe-puredata-component/basic/

two very simple PD patches loaded in a THREE.js scene!

WASD to move, mouse to look or look around in your smartphone