Inspired by David Galloway's "Square Wave from the summation of odd-integer harmonic frequencies", I made a spin-off based on the same code: