[PD] best way of doing this
Miller Puckette
mpuckett at man104-1.ucsd.edu
Wed Jun 5 16:19:06 CEST 2002
Simplest of all might be to "wrap~" and subtract the wrapped signal from
the original. No need to convert to messages that way.
cheers
Miller
On Wed, Jun 05, 2002 at 11:29:54AM +0200, IOhannes zmoelnig wrote:
> Juha Vehviläinen wrote:
> > Hi,
> >
> > I did this a while ago:
> >
> > inlet~ - pack~ - int - sig~ - outlet~
> >
> > and then, put block~ 1 in there.
> >
> while [block~ 1] seems great, it is really quite consumptive (because
> most signal-objects will be optimized in their inner-loop (which is
> called only once per block-cycle with block~==1) and much non-optimized
> is transferred out of this loop (which is only called once per
> block-cycle -- with block~==1 this reads: once per sample !!)
>
> while using zexy, a better approach would be
>
> [inlet~]
> |
> [*~ 1000]
> |
> [pack~]
> |
> [l2i]
> |
> [unpack~]
> |
> [*~ 0.001]
> |
> [outlet~]
>
> [l2i] truncates all floats of a list to integers
>
> mfg.ca.sdr
> IOhannes
>
More information about the Pd-list
mailing list