Hmm ... actually I got carried away. I can't implement [cos~] or [env~] with native web audio API nodes. I'll have to use a slow ScriptProcessorNode. So if performance is not a concern for you I'll do it, but I won't integrate it to the core of WebPd.
On Tue, Aug 25, 2015 at 9:50 AM, Julian Brooks jbeezez@gmail.com wrote:
Yay! Mad skills[z]:)
Cheers Seb
On 25 August 2015 at 07:43, s p sebpiq@gmail.com wrote:
No worries :)
I'm aware it would take more time to set up a tutorial than to just
implement them.
Yes ... I'll implement [osc~] and [env~] (not sure I can, but I'll try) today.
On Tue, Aug 25, 2015 at 9:20 AM, Julian Brooks jbeezez@gmail.com wrote:
Hi Seb (and Chris!),
Implementation of classes is a bit beyond me atm (willing to learn though:).
If there's a walkthrough I'd be happy to get involved, though I'm aware it would take more time to set up a tutorial than to just implement them. Always happy to help with testing if that's helpful.
[cos~] would be super-useful, as would [env~] or is there a WebPd-Vanilla equivalent I'm not getting?
Appreciate you guys getting involved, nice one.
Regards,
Julian
On 25 August 2015 at 06:35, s p sebpiq@gmail.com wrote:
Only [osc~] is a signal generator, and [cos~] the raw 'lookup'
Oh right! Makes sense ...
I believe [cos~] and [abs~] could both be implemented by using Web Audio API's WaveShaperNode. The closest example is [clip~] implementation which you can find here : https://github.com/sebpiq/WebPd/blob/master/lib/objects/dsp.js#L892
[wrap~] on the other hand can't be implemented :'( or it could, but with a ScriptProcessorNode, which means it would be slow, and I don't want to go into doing this for the moment...
As Chris suggested, I'd be super happy to get a pull request (with tests) ... if you feel that you can pull it, otherwise I can do it.
Cheers
On Tue, Aug 25, 2015 at 5:53 AM, Chris McCormick chris@mccormick.cx wrote:
On 24/08/15 22:03, Julian Brooks wrote:
What I do think from the hints and suggestions given is that I've got enough to be getting on with to make something approximately close and hopefully interesting.
You could also implement cos~ in WebPd and submit a PR to seb. Here are osc~ and phasor~ for your reference:
https://github.com/sebpiq/WebPd/blob/master/lib/objects/dsp.js#L90
Cheers,
Chris.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
*Sébastien Piquemal*
-----* @sebpiq* ----- http://github.com/sebpiq ----- http://funktion.fm
--
*Sébastien Piquemal*
-----* @sebpiq* ----- http://github.com/sebpiq ----- http://funktion.fm