Implement square generator as additive synthesizer in order to remove aliasing effects.