[PD] Integer Interpolator with controllable step-time

B. Bogart ben at ekran.org
Sun Sep 25 20:57:45 CEST 2005

Hey all,

I'm working on a patch to control the path of this serial control
camera. I'm trying to figure out how to do some interpolation since the
camera's interpolation is too fast.

so what I want is something like "line" except:

1. It works in integer space, not float (since that is the grain of the
camera positions

2. The time the interpolator takes to ramp is not defined for the whole
ramp, but only for each step (since the camera will only accept serial
commands so fast)

For example:

[iline 0 33] 0 is the initial value and 33 is the time for each step

The output would be 0 1 2 3 4 5 6 7 8 9 10 and gets to 10 in 330ms.

If I then send a [6< message we get:

9 8 7 6 and takes 90ms

I'm trying to build one now, but the whole +,- part is getting complex...

If anyone has an abstraction/external like this laying around let me
know, or an elegant way to accomplish it would work too...

Maybe I should try for a pyext solution... hmmm.

Thanks all.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050925/6c50b55a/attachment.pgp>

More information about the Pd-list mailing list