[PD] countings
IOhannes m zmoelnig
zmoelnig at iem.at
Fri Jul 11 21:37:18 CEST 2003
Marc Lavallée wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Le 10 Juillet 2003 15:04, David Sabine a écrit :
>
>
>>[mod 360] actually produces numbers between 0 and 359
>>forever and ever and ever.
>
>
> And here's a patch that works with negative numbers at 1/100 precision.
if you need a modulo that works with floats, probably try [wrap] from
zexy (quite new; use the cvs-version or get the latest from
ftp://iem.at/pd/Externals/ZEXY )
it is also useful, if you not only want to wrap between [0, 360), but,
say, between [-180, 180), or [3, 4) (maybe not that useful with degrees)
but then i am glad, people sent real pd-patches and not references to
externals.
mfg.as.r
IOhannes
More information about the Pd-list
mailing list