[PD] tri function in [expr~]

Matt Davey hard.off at gmail.com
Sun Aug 13 19:06:10 CEST 2017


>when is it necessary to force expr~ to consider a number as a float by
using a decimal?

If you divide an integer by another integer, it will only output an
integer, so you need to add the decimal in that case.

i think it only matters for division, as addition subtraction and
multiplication of integers only ever yield integer results anyway.


i use this for triangles:

expr~ abs($v1*2-1)*2-1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170813/843a5a1b/attachment.html>


More information about the Pd-list mailing list