Generate: square, triangle and sawtooth waves