Fixed signal bug in harmonic square wave

Now it cleanly degrades to sinewave at higher frequencies