Issues with animating wiggle speed
Hi.
I am trying to animate circles using the wiggle expression. I need the wiggle speed (frequency) to start at a certain speed and then speed up through the animation, then stay at the same speed for a second at the end. This is part of a larger shot that has other circles with a wiggle speed value that is HIGHER than the end speed of the circles that speed up.
However, when the wiggle speed is supposed to level out, the circles speed up very fast (even faster or just as fast as the ones with a higher speed value) and THEN they slow back down to where they should be.
I have the speed values linked to slider controls and have based their expressions on this article:
https://www.motionscript.com/articles/speed-control.html
Can somebody please explain how to speed up the wiggle speed and just have it level off at a constant value instead of the spike where they go REALLY fast and then settle down into the speed they should have been since the keyframe? This is driving me crazy. I have lost hours trouble shooting this. (I even tried keeping the wiggle speed constant and animating time remapping)
Here is the base expression I am using (based on the above link):
freq = (thisComp.layer("wiggle_control").effect("wiggleSpeed")("Slider"));
amp = (thisComp.layer("wiggle_control").effect("wiggleSize")("Slider"));
n = freq.numKeys;
if (n > 0 && freq.key(1).time < time){
accum = freq.key(1).value*(freq.key(1).time - inPoint);
for (i = 2; i <= n; i++){
if (freq.key(i).time > time) break;
k1 = freq.key(i-1);
k2 = freq.key(i);
accum += (k1.value + k2.value)*(k2.time - k1.time)/2;
}
accum += (freq.value + freq.key(i-1).value)*(time - freq.key(i-1).time)/2;
}else{
accum = freq.value*(time - inPoint);
}
seedRandom(thisComp.layer("wiggle_control").effect("seedAdd")("Slider") + index);
wiggle(1,amp,1,.5,accum)
Here is a screenshot of my keyframes on the control:

Any help would be greatly appreciated. Thank you!
