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:
camera positions
ramp, but only for each step (since the camera will only accept serial commands so fast)
For example:
[10< | [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.
b.
On 9/25/05, B. Bogart ben@ekran.org wrote:
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:
- It works in integer space, not float (since that is the grain of the
camera positions
Pass the output of [line] through the [i] object to convert to ints.
- 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)
Would the counter object (the GEM one) be more appropriate for this?
cgc
For example:
[10< | [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.
b.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list