Sinewave, squarewave, sawtooth, and noise oscillator in C.