Hi,
I did this a while ago:
inlet~ - pack~ - int - sig~ - outlet~
and then, put block~ 1 in there.
pack~ is from zexy (where else?) and turns a signal to stream of floats, with blocksize of one you can do anything and never need to write externals.. :-)
cheers Juha
this in Pd? I can't seem to find any 'round to the nearest integer' operation that will work on signals.
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
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