Here, the values in the sine function are rounded off to the nearest multiple of 1/8. The resulting roundoff error causes new frequencies to be introduced; these can be heard when the function is played (by clicking the Sound checkbox). This is called quantization distortion. Press Sine to get a clean sine wave, and play it for comparison. Press Quantize to quantize it, multiple times to use a coarser quantization.

Next: Aliasing
Previous: Noise
Generated Wed May 17 2017