Simple ScriptProcessor example

Quick example to show a scriptprocessor being used to generate an arbitrary periodic waveform, in this case a square wave, properly band-limited to half the sample rate. The script processor sums a series of sine waves with the appropriate Fourier coefficients. The output of the scriptprocessor is connected to a BiquadFilter with cutoff and resonance controls, and the output of the filter is connected to the destination.