This is just a quick example how you can create a sawtooth waveform or a squqare wave with a bunch of sine waves. Enjoy!
A new version: https://scratch.mit.edu/projects/411977024/