this is just a first draft, when ive get the basics working i might implement some more functions.

first problem is that i cant calculate the angle that controls the panning, circulate smoothly. every now and then, when it passes 0, 90, 180 or 360 deg, it blips back a quarter of a revolution. guess it because the “beatcounter” is updated slower/after than the “unitcounter”? dont know how to solve it.

the last thing is that i need to scale my range of 0 – 1920, used in the beginning, to 0 – 2*pi but dont know how to make pi or even value with a comma (6.35…). using 6. at the moment.

if anyone got any other suggestions, i would be glad to know.

here is the code;

]]>2*pi = 6.283185

To post a patch here, choose Edit > Copy Compressed and paste into your post.

]]>