freq = 1; decay = 6; duration = 0.25; retard = textIndex*thisComp.frameDuration*2; t = time - (inPoint + retard); startVal = [100,100,100]; endval= [0,0,0]; if (t < duration){ linear(t,0,duration,startval,endval); }else{ amp = (endval - startVal)/duration; w = freq*Math. PI*2; endval + amp*(Math, sin((t-duration)*w/Math.exp(decay*(t-duration))/w); }