Semen Klenov

Home / Journal / Technical research

Analogue vs digital: sampling, bits and aliasing explained with two experiments

A 900 Hz tone sampled too slowly turns into 100 Hz, and every bit adds about 6 dB. The science behind film vs digital, moiré and banding, for beginners.

ResearchBy Semen Klenov26 November 2026

Analogue vs digital: sampling, bits and aliasing explained with two experiments

Film or digital? Vinyl or streaming? Beginners often hear these debates as matters of taste. Under the taste there is a precise piece of science: how a continuous signal from the real world becomes a list of numbers. My book covers both film and digital recording, and I think every visual artist should understand the step between them. In this article I explain it with two small experiments.

Analogue and digital in one paragraph

An analogue signal is continuous: the voltage from a microphone, the density of silver in film, the light falling on a sensor. It can take any value at any moment. A digital signal is a list of numbers. Getting from one to the other takes two separate steps, and each has its own error:

  1. Sampling: measure the signal at regular moments (in time) or positions (in space: pixels).
  2. Quantisation: round each measurement to the nearest of a limited set of levels (bits).

Step 1: sampling and the Nyquist limit

The sampling theorem, from Nyquist (1928) and Shannon (1949), says that a signal can be reconstructed exactly from its samples if it contains no frequencies above half the sampling rate. If it does, the high frequencies do not disappear. They fold back and pretend to be low frequencies. This is aliasing.

Experiment A. I sampled a 900 Hz tone at 1000 samples per second, below the required 1800. The spectrum of the samples shows a peak at exactly 100 Hz. The samples describe a slow wave that never existed (see the cover).

You know this effect from film: the “wagon-wheel effect”, where spokes seem to turn backwards at 24 frames per second. In images it is moiré on fabrics and fine grids. Cameras fight it with an optical low-pass filter, and 3D renderers with anti-aliasing: several samples per pixel instead of one.

Step 2: quantisation and bits

Every extra bit doubles the number of levels and lowers the rounding error. For a full-scale sine wave, theory predicts a signal-to-noise ratio of about 6.02 × N + 1.76 dB for N bits.

Experiment B. I quantised a sine wave to 4, 8, 12 and 16 bits and measured the real error:

BitsLevelsMeasured SNRTheory
41626.2 dB25.8 dB
825650.0 dB49.9 dB
124,09674.0 dB74.0 dB
1665,53698.1 dB98.1 dB

Every bit adds about 6 dB. That is why 8-bit images show banding in smooth skies and gradients, while 10-, 12- and 16-bit files and RAW photos give room to grade without stepping. It is also why masters for colour grading are kept at higher bit depth and converted to 8 bits only for delivery.

So is analogue “better”?

Not automatically. Analogue media have their own limits: film grain, tape hiss, generation loss with every copy. A digital system that samples fast enough and uses enough bits can exceed the useful precision of most analogue media, and it copies without loss. What people love in film is often real, though. It comes from grain structure, highlight roll-off and colour response, not from digital being “missing something”. Many of these qualities can be measured and even modelled.

What this means for my work

In SMART ONE, sampling and quantisation are where image analysis starts. Pixel grids, compression blocks and bit depth leave measurable patterns, and any honest analysis has to separate them from the content of the scene. In 3D work, aliasing is the reason to render with enough samples per pixel and keep textures at a resolution that matches their size on screen.

If you are just starting

  • Remember two rules: sample at more than twice the highest frequency, and every bit adds about 6 dB.
  • Work in 16-bit or 32-bit float when you grade or composite. Export 8-bit only at the end.
  • When you see moiré or banding, you are looking at sampling or quantisation, not at “bad quality” in general.

Reproduce it

import numpy as np
t = np.arange(2**20)/2**20; x = np.sin(2*np.pi*997.3*t)
for N in [4, 8, 12, 16]:
    step = 2/2**N; q = np.round(x/step)*step
    print(N, 10*np.log10(np.mean(x**2)/np.mean((x-q)**2)), 6.02*N + 1.76)
fs, f = 1000, 900; s = np.sin(2*np.pi*f*np.arange(fs)/fs)
print("alias at", np.argmax(np.abs(np.fft.rfft(s))), "Hz")

References

  • Klenov, S. (2026). Technical Foundation. Filmmaking: The Cinematographer’s Handbook (v1.1). Zenodo. https://doi.org/10.5281/zenodo.24325834
  • Nyquist, H. (1928). Certain topics in telegraph transmission theory. Transactions of the AIEE, 47(2), 617–644.
  • Shannon, C. E. (1949). Communication in the presence of noise. Proceedings of the IRE, 37(1), 10–21.

SEMEN KLENOV · Visual science for beginners. Drafted with AI assistance; experiment code and numbers checked by the author.