Hi,
I was hoping to use the lag CHOP to smooth some live data being manipulated inside a Python callback. So far I’ve tried writing to the lag CHOP like so op(‘lag’)[0] = jumpy_live_data, but I always get an “Object does not support item assignment” error.
-What would the correct way of generating an input for a CHOP and then reading its output from a Python script be?
-Is there a better way of smoothing live data from within a Python script in TD? I could always implement a moving average but figured there must be a faster more TD’esque way of doing this…
FWIW I’m calculating a TUIO ID’s heading by comparing its previous position to its current position. This works OK but the resulting angle value jumps around a lot and I’d like to smooth this out.
Thanks!