Sample Rate & Bit Depth Demo

Hear and see how digital audio settings affect quality. Adjust sample rate and bit depth, then play a rising and falling sine tone.

Waveform
Stopped
Ideal sine Processed output
22,050 samples per second
16,777,216 possible volume values
8.0 s per rise-and-fall cycle

Live readout

Sample rate
22,050 Hz
22,050 samples per second
Nyquist limit
11,025 Hz
Highest pitch before distortion
Bit depth
24-bit
16,777,216 possible volume values
Sweep cycle
8.0 s
Quantization levels
16,777,216
Distinct values the wave can be stored at

About this demo

Sample rate is how many times the wave is measured each second — more samples capture more detail in time (especially high pitches).

Bit depth is how many different volume values are available — more values mean smoother steps between loud and quiet.

Sweep speed controls how quickly the test tone rises from low to high pitch and back again. Slower sweeps make it easier to hear artifacts at each frequency.

Use headphones. Lower sample rates alias high frequencies; 2-bit and 4-bit settings are intentionally harsh.