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:
- Sampling: measure the signal at regular moments (in time) or positions (in space: pixels).
- 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:
| Bits | Levels | Measured SNR | Theory |
|---|---|---|---|
| 4 | 16 | 26.2 dB | 25.8 dB |
| 8 | 256 | 50.0 dB | 49.9 dB |
| 12 | 4,096 | 74.0 dB | 74.0 dB |
| 16 | 65,536 | 98.1 dB | 98.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.
Originally published at https://semenklenov.com/journal/analogue-vs-digital-signal/
Top comments (1)
Experiment A is the one that earns the post: a 900 Hz tone sampled at 1000 samples per second folding back into a 100 Hz wave that never existed is aliasing you can see, and the wagon-wheel comparison makes it stick for anyone who has seen spokes turn backwards at 24 fps. What gives the numbers credibility is how closely the measured SNR tracks theory — 26.2 vs 25.8 dB at 4 bits, then 50.0, 74.0, and 98.1 dB matching 49.9, 74.0, and 98.1 almost exactly, which is the 6 dB-per-bit rule doing real work rather than decorating the page. Two questions: the reproduce script uses a 997.3 Hz tone while Experiment A uses 900 Hz — why the different frequency, and was the quantisation measured with or without dither? And in your SMART ONE image work, where does the same folding show up spatially — is moiré in a pixel grid the image-side version of that phantom 100 Hz wave?