This is just a quick example how you can create a sawtooth waveform or a squqare wave with a bunch of sine waves. Enjoy! Update: Now you can see how the sawtooth transforms into the square wave.