[PD] a simple question about increasing/decreasing values

Kjetil Matheussen k.s.matheussen at gmail.com
Tue Aug 29 10:29:57 CEST 2017


On Tue, Aug 29, 2017 at 10:04 AM, oliver <oliver at klingt.org> wrote:

> IOhannes m zmölnig wrote:
>
>> On 08/29/2017 01:28 AM, Hrvoje Radnic via Pd-list wrote:
>>
>>> Hi,I usually do this by multiplying the value by -1 and offset it by the
>>> range of the first value
>>>
>>
>> which is about 100% faster than the expr equivalent.
>>
>
> hi, IOhannes !
>
> thanks for that info !
>
> i often read on this list that [expr] is slower/computational more
> expensive etc. than using simple vanilla objects. why is that so ?
>
> in theory, it would make patching more easy as it reduces the number of
> objects and cords. what are situations where [expr] makes more sense to use
> ?
>
>
expr is slower since the expressions are interpreted, but in practice it
probably doesn't matter unless expr is called extremely often. Another
alternative is k_cext which compiles the expressions to C, probably making
it the fastest alternative: https://github.com/kmatheussen/k_cext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170829/b2b27dc8/attachment.html>


More information about the Pd-list mailing list