Programming - Wave Generator, Revisited

An updated Wave Generator -

I've been looking at some different waveform generation, and updated the sine-wave generator from last year with a few other functions, using the harmonic series formulae on wikipedia for triangle, rear, and front sawtooth waves. Embedded below is the updated version, tinker with the number of harmonics for the non-sine waves and you should see how they converge.

Full Screen

Wikipedia Entries:
Triangle Wave
Sawtooth Waves

crazysweet's blog | login or register to post comments