[PD] Integer Interpolator with controllable step-time
ben at ekran.org
Sun Sep 25 20:57:45 CEST 2005
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
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)
[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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 256 bytes
Desc: OpenPGP digital signature
More information about the Pd-list