Those are both good reads. The "Web Audio! All Aboard" article is pretty inspiring.
As for running Pd on a server, if the user's don't need to share data (for example, if you are streaming the results of their patches back to them) you could run one instance of Pd per user. That way one user couldn't kill audio for everyone.
In most of the work I've done the web UI interacts with Pd patches, but it doesn't actually send patches, so to the extent that I trust my own patching ability, I can feel fairly certain that my instance of Pd won't crash. I guess I assumed that with the sequencer that's the type of thing you would be doing.
andy
On Tue, Mar 29, 2011 at 11:00 AM, Pierre Massat pimassat@gmail.com wrote:
I think you should all read this: https://wiki.mozilla.org/Audio_Data_API
and this: http://weblog.bocoup.com/web-audio-all-aboard
I believe it only works in Firefox 4 at the moment.
If i wanted to use Pd to generate sound for a web application, i'd have to keep an instance of Pd running on the server continuously, right? And keep all the patches i need open? Which means that if any patch crashes Pd there'll be no sounds anymore?
Pierre
2011/3/29 Andy Farnell padawan12@obiwannabe.co.uk
Sometimes you guys make me want to shout with happiness. Dont stop the rock.
On Tue, 29 Mar 2011 09:45:26 -0400 Andrew Turley aturley@acm.org wrote:
A few people (myself included) have built web UIs that control PD patches that run on a server. The technique I've used involves an http server that acts as a gateway, transforming http requests into OSC messages which are then sent to PD patches. My blog has some info about some of my experiments: http://www.pillowsopher.com/blog/
I've also been looking at wrapping libpd (http://gitorious.org/pdlib/pages/Libpd) in a web server (maybe writing a node.js binding?) and using that to generate audio based on data from a web browser.
andy
On Tue, Mar 29, 2011 at 8:07 AM, Pierre Massat pimassat@gmail.com wrote:
Hi all,
I've been toying with some new HTML tags (canvas and audio), in a an attempt to build a web app that would work as a simple sequencer. Although canvas is great, i'm not fully satisfied with the audio tag. I was wondering, is there a way i could use Pd as a sound engine in a web application? Can it run on a server? Sorry if this is a silly question... There was a discussion a few months back about a project calld WebPd. Anybody knows if it's been developped any further?
Cheers!
Pierre
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Andy Farnell padawan12@obiwannabe.co.uk
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list