[PD] [cos~]replacement for webPd patch

Joe White white.joe4 at gmail.com
Mon Aug 24 11:30:10 CEST 2015


Hi Julian,

I've attached an optimised implementation for [cos~] that we've been using
for Heavy. It's an approximate taylor series expansion but it should be
much faster than just using cosf(). Hopefully webpd supports [abs~] and
[wrap~].

Cheers,
Joe

On 24 August 2015 at 09:18, Alexandros Drymonitis <adrcki at gmail.com> wrote:

> what about this?
>
> [table_size(
> |
> [until]
> |
> [f]x[+ 1]
> |
> [t f f]__________
> |                         |
> [/ table_size]      |
> |                         |
> [* twoPi]             |
> |                         |
> [cos]                  |
> |                         |
> [tabwrite table name]
>
>
> well, ASCII patches don't look so good, but I hope you get the picture.
>
> On Mon, Aug 24, 2015 at 9:29 AM, Alexandre Torres Porres <porres at gmail.com
> > wrote:
>
>> cause I made some tests, [osc~] will give the same result as [cos~]...
>>
>> 2015-08-24 3:26 GMT-03:00 Alexandre Torres Porres <porres at gmail.com>:
>>
>>> > Unfortunately [osc~] doesn't have the tonal quality I'm after
>>>
>>> how is that?
>>>
>>> 2015-08-23 17:35 GMT-03:00 Julian Brooks <jbeezez at gmail.com>:
>>>
>>>> Alexandre & Alexandros,
>>>>
>>>> Cheers for pitching in.
>>>>
>>>> It's for a random bleepy patch.
>>>> Unfortunately [osc~] doesn't have the tonal quality I'm after - good
>>>> idea though.
>>>>
>>>> On 23 August 2015 at 20:53, Alexandre Torres Porres <porres at gmail.com>
>>>> wrote:
>>>>
>>>>> i do realize that, but who knows what he needs this for, it may
>>>>> work... :)
>>>>>
>>>>> 2015-08-23 16:37 GMT-03:00 Alexandros Drymonitis <adrcki at gmail.com>:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sun, Aug 23, 2015 at 8:04 PM, Alexandre Torres Porres <
>>>>>> porres at gmail.com> wrote:
>>>>>>
>>>>>>> you can treat [osc~] as [cos~]
>>>>>>>
>>>>>>> just give it a frequency of "0" and use the phase inlet as the angle
>>>>>>> input (from 0 to 1).
>>>>>>>
>>>>>> But the phase inlet of [osc~] is a control inlet, and [cos~] takes
>>>>>> signals..
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pd-list at lists.iem.at mailing list
>>>>> UNSUBSCRIBE and account-management ->
>>>>> http://lists.puredata.info/listinfo/pd-list
>>>>>
>>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150824/e8169188/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cos~.pd
Type: application/octet-stream
Size: 817 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150824/e8169188/attachment-0001.obj>


More information about the Pd-list mailing list