[PD] [cos~]replacement for webPd patch

Julian Brooks jbeezez at gmail.com
Tue Aug 25 08:20:32 CEST 2015


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 at 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 at 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.
>>
>> --
>> http://mccormick.cx/
>>
>>
>> _______________________________________________
>> Pd-list at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150825/b2c9f9ad/attachment-0001.html>


More information about the Pd-list mailing list