This sounds very interesting, especially so because you exhibit the
fortitude ( or maybe the cluelessness, dunno ) to attempt a purely
analog solution....
I think I've been making this unnecessarily complicated. Instead of a
linear potentiometer attached to the shaft, fed into a sin function
circuit, I could simply get a sin potentiometer (I just found out
there are such things, eg.
http://www.p3america.com/sine_cosine_potentiometers.htm).
As for the control loop, I think the torque due to gravity of a rigid
unbalanced body acting as a pendulum is solely dependent on the sin of
the position angle (the mass, rotational inertia, and radius of the
center of gravity being fixed). And if the torque produced by a D.C.
motor is reasonably proportional to the current, I'd just have to
arrange things so the the sin potentiometer proportionally controls
the current drawn by the motor.