I want to build this visual http://processing.org/learning/trig/ in Pd, but I want the sine curve to be drawn dynamically with every circle spin. It seems quite hard though.

I don't know which object would be best. I tried either [curve] but the parameters are way too many and I'm not sure if precision is really possible. Then I tried [square 0.008] in combination with [repeat] but also doesn't work.
Anyone knows how to do this?