Webkit and firefox support

26 views
Skip to first unread message

sebastien piquemal

unread,
Mar 10, 2012, 6:08:11 AM3/10/12
to web-pu...@googlegroups.com
Hi !

After a few experiments, a lot of googling, I came to the conclusion that it is not sane to maintain our own drivers. So I found this library : https://github.com/jussi-kalliokoski/sink.js which does the job quite well (and include lots of optimizations - e.g. use of Javascript Workers / multi-threading -, lots of cross-browser incompatibility fixes) , and integrated it to WebPd.
You can go to : https://github.com/sebpiq/WebPd download my repo and test in your chrome/safari browser, ... it should work like a charm.

Cheers !

Sébastien

Chris McCormick

unread,
Mar 12, 2012, 3:40:45 AM3/12/12
to web-pu...@googlegroups.com, sebastien piquemal
Hi Sebastien,

Awesome work! That is a really cool library. I will try and integrate
this soon.

Cheers,

Chris.

--
http://mccormick.cx/

sebastien piquemal

unread,
Mar 12, 2012, 5:36:20 AM3/12/12
to web-pu...@googlegroups.com, sebastien piquemal
> That is a really cool library.

Yeah, it is really cool stuff ! However, it will require a bit of extra work to integrate a flash fallback.


> I will try and integrate this soon.

Yes, please, try it and tell me if everything works fine ! I have tested myself, but the more testing the better ...
If by "integrating" you mean "merging", I think you should wait a bit. Right now the library is split in 2 files + 1 dependency, so the users will have to download them all.
I am working on a new build system using Jake (https://github.com/mde/jake), which should solve that. When this is done, I'll send you a pull request !!!

Cheers,

Sébastien

Chris McCormick

unread,
Mar 30, 2012, 1:24:03 AM3/30/12
to s p, web-pu...@googlegroups.com, PD List
Hi Sébastien,

On 03/20/2012 03:18 PM, s p wrote:
> Did you have time to take a look at the work done ?

Seems like I am not going to have time to keep up with your pace of
development. I have put a note on my WebPd project page
<http://mccormick.cx/projects/WebPd/> that the latest development is
happening at your GitHub fork:

https://github.com/sebpiq/WebPd

Anybody interested in the new stuff being added to WebPd should look there.

Really great to see this moving forward so quickly. :)

Spencer Kelly

unread,
Mar 30, 2012, 6:32:53 AM3/30/12
to web-pu...@googlegroups.com

cool! what's node for?  isn't audio ... clientside?
you rule sebastien!

sebastien piquemal

unread,
Mar 30, 2012, 2:41:50 PM3/30/12
to web-pu...@googlegroups.com, s p, PD List
Thanks ! I was kind of afraid that you were upset by me raping your code ...

I think what I did really made the whole thing easier to maintain and easier to test. The new architecture is as uncoupled as possible and so allows for more hardcore testing (for example, I wrote full unit-tests for [cos~] : https://github.com/sebpiq/WebPd/blob/master/test/objects.js#L60).
I'll continue refactoring in the same direction, and I expect that in ~ 1 month, I'll arrive to a point where it will be about stable.
Also, I finished yesterday to implement an API for complete dynamic patching. For example, you can now do :

var patch = new Pd.Patch();
var osc440 = new Pd.objects['osc~'](patch, [440]);
var dac = new Pd.objects['dac~'](patch);
patch.connect(osc440.getId(), 0, dac.getId(), 0);
patch.connect(osc440.getId(), 0, dac.getId(), 1);

There's still a bunch of stuff I'm not fully satisfied of, but overall that's the idea.
Also, I am moving slowly all the objects from the old system to new system (implementing full unit-testing at the same time), so many objects are not available yet, because not yet migrated.

Cheers,

Sébastien

Vilson Vieira

unread,
Mar 30, 2012, 2:44:14 PM3/30/12
to web-pu...@googlegroups.com, s p, PD List
Sebastien, incredible! Looking forward to see you dynamic patching thing! Wishing to help soon.

Keep rocking!

2012/3/30 sebastien piquemal <seb...@gmail.com>



--
Vilson Vieira

vil...@void.cc

((( http://automata.cc )))

((( http://musa.cc )))

((( http://labmacambira.sourceforge.net )))

sebastien piquemal

unread,
Mar 30, 2012, 2:51:36 PM3/30/12
to web-pu...@googlegroups.com
Spencer,

Node is just for helping with the development.
The library is now divided in several modules to make maintenance easier. But that is just for development ! So basically all those modules have to be bundled together to make a one-file "pd.js" from a dozen separate development modules. Also I use node for minifying the final file, I will probably use it to run tests automatically, and test coverage. Nothing related with client-side really ! Just for the development details that most of teh people don't wanna know about.
Most important is that in the end, you just have ONE single, thorougly tested file that you can just include in your web page :)

sebastien piquemal

unread,
Mar 30, 2012, 2:56:06 PM3/30/12
to web-pu...@googlegroups.com, s p, PD List
Thanks :) I'll try !!!
And sure ! All help is welcome !
Reply all
Reply to author
Forward
0 new messages