The spectrum of a quantized sinusoid