Try this:
—————————————–
n = 0;
t = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time) n–;
}
if (n > 0) t = time – marker.key(n).time;
ampX = 15;
ampY = 60;
freq = 5;
decay = 3.0;
angle = freq * 2 * Math.PI * t;
scaleFactX = (100 + ampX * Math.sin(angle) / Math.exp(decay * t)) / 100;
scaleFactY = (100 + ampY * Math.sin(angle) / Math.exp(decay * t)) / 100;
x=value[0] * scaleFactX;
y=value[1] / scaleFactY;
[x,y]
—————————-
You can change values of ampX, and ampY to get the desired results. You can attach them to sliders if you want.
Bartek Skorupa
Warszawa, Poland