>Finally decided to start exploring the power of java,
Actually, AE’s expression and scripting languages are based on JavaScript.
>Everything after the “;” are just notes correct?
Yes. Javascript considers everything on a line after “//” to be a comment.
>(freq*time*2*math.pi) is calculated first, then multiplied by Sin, then -1, /2
Actually, freq*time*2*math.pi becomes the argument to the Math.sin trig function. The range of that function is +1 to -1. So subtracting one makes the range 0 to -2. Then, dividing by two makes the range 0 to -1 (which is what the expression needs).
Dan