packages feed

hsc3-0.2: Help/UGen/Math/difSqr.help.lhs

difSqr a b

Difference of squares.  Return the value of (a*a) - (b*b). This is
more efficient than using separate unit generators for each
operation.

> let { a = fSinOsc AR 800 0
>     ; b = fSinOsc AR (xLine KR 200 500 5 DoNothing) 0 }
> in audition (out 0 (difSqr a b * 0.125))

Written out:

> let { a = fSinOsc AR 800 0
>     ; b = fSinOsc AR (xLine KR 200 500 5 DoNothing) 0 }
> in audition (out 0 ((a * a - b * b) * 0.125))