Sampling
The sample rate is the number of measurements each second. A higher rate can represent higher frequencies.
44,100 Hz = 44,100 samples / second / channelChange the numbers. See the signal. Hear the difference.
22,050 × 8 × 2 bits/s
75% smaller than CD-quality PCM
Half the sample rate · Nyquist limit
Click any blue dot in the waveform. More bits give each measurement a finer set of values.
A microphone starts with a continuous signal. Sampling and quantisation turn its measurements into binary data.
The sample rate is the number of measurements each second. A higher rate can represent higher frequencies.
44,100 Hz = 44,100 samples / second / channelBit depth controls the available amplitude levels. Rounding a measurement to a level introduces quantisation error.
8 bit = 2⁸ = 256 possible levelsMono has one channel. Stereo has separate left and right channels, so it uses twice the PCM data at the same settings.
Mono → stereo = 2 × the PCM bit rateA note about imported music. Your file is already digital. This lab resamples and requantises its decoded audio to model digitisation. Raising the settings cannot restore detail already lost. The smooth curve is an illustration of the decoded source, not a recording of its original analogue wave.
Compressed audio has a separate target bit rate. Move the slider to estimate its size, then compare it with your uncompressed PCM. This calculator does not encode or change playback.
Start with the melody at 4 bits. Switch between original and digitised, then raise the bit depth. Listen for the grainy noise.
Sample a 6,200 Hz tone at 8,000 Hz with the filter off. It folds to 1,800 Hz. Turn the filter on and compare.
Begin with CD-quality PCM. Change only stereo to mono. Predict the new bit rate and file size before checking.