Photocopy a photograph and it comes out a little grayer. Copy the copy, and copy that, and within a dozen generations you're holding fog. Old cassette tapes did the same thing to sound: every re-recording poured in a fresh helping of hiss, because every copy of a smooth analog wiggle is a slightly wrong copy, and there is no way to ask "wrong compared to what?" The hiss of the noise floor gets stirred in at every step, and once it's in, it never leaves.
Numbers don't have that problem. If I read you "seven" over a crackly phone line and you write down "seven", your copy isn't a little worse than mine. It is exactly mine. Numbers can be copied a billion times without wearing out, checked for mistakes, stored for a century. So here is the deal this chapter offers: give up the smooth curve, and in exchange your voice becomes immortal. Everything people mean by the word digital is just two honest steps: snapshots, then rounding.
Step one: snapshots#
A movie is not moving. It is a stack of still photographs, shown fast, and your eye fills in the motion so well you'd swear it was smooth. We can play the same game on a wave. Instead of keeping the whole smooth curve, take quick, regular snapshots of its height: now, now, now. Engineers call each snapshot a sample . Keep only the dots, throw the curve away, and if the snapshots come often enough, the dots hold everything: the original wave is the one smooth curve that threads them.
The word doing the heavy lifting is enough. Drag the slider below and find out what it costs to be stingy.
That false wave has a name: an alias. And it is a proper trap, because nothing looks broken. The dots are all real, honestly measured, perfectly placed; they simply no longer pin down the wave they came from, and a lazier wave slips through the same dots. Once the snapshots are too rare, the true wave and the imposter agree at every snapshot, and no one downstream can ever tell which one was real.
You have seen this trap sprung, probably in an old western. The wagon dashes forward while its wheels seem to spin lazily backward, because a movie camera is a snapshot-taker too. At twenty-four pictures a second, a fast-turning wheel moves almost one whole spoke-step between frames, and your eye stitches the snapshots into a slow backward roll: an alias, projected on a big screen. Slide the figure above down to where the wave "stands still" and you are watching the exact moment the wagon wheel freezes.
So there is a law to obey, and it's worth saying in plain words: you must take snapshots more than twice as often as the fastest wiggle you care about. The law carries the name of the engineer who pinned it down a century ago, Harry Nyquist, so you will hear it called the Nyquist rule . That's why CDs take 44,100 snapshots every second: young ears hear wiggles up to about 20,000 per second, and 44,100 is comfortably more than twice that. And remember the phone call's narrow 3 kHz shelf from last chapter? Keep only ingredients up to three thousand, and eight thousand snapshots a second is plenty. The phone system has sampled at exactly that rate since before your grandparents could dial.
Step two: rounding#
Snapshots alone aren't numbers yet. Each snapshot's height is still a smooth, analog quantity, some awkward amount like "a smidge above halfway". To write it down we do the second honest step: build a ladder of allowed heights, and round every snapshot to its nearest rung. Engineers call it quantization, but your hand does it every time you read a ruler: the pencil line falls between two marks and you pick the closer one.
four rungs: a crude sketch, with heavy fuzz
Rounding always costs something: the little gap between the true height and the chosen rung is a mistake we make on purpose. Look at the fuzz trace under the staircase, though, and you'll recognize it. Jagged, patternless, a little of every frequency: rounding roughness is a kind of noise, a hiss we manufacture ourselves. The cure is cheap: add rungs. Every doubling of the ladder halves the fuzz. A CD uses a ladder with 65,536 rungs, which pushes its self-made hiss so far below hearing that no ear, in any room, will ever find it.
The smallest possible fact#
After the two steps, what's left of your voice? A steady stream of rung numbers: nine, eleven, fourteen, twelve... and numbers can be written in any alphabet we like. Machines prefer the shortest alphabet there is: the bit, a single one-or-zero, the smallest possible fact. One bit answers one yes-or-no question. Two bits answer two, and every bit you add doubles how many rungs you can tell apart: four bits pick one rung out of sixteen; sixteen bits pick one out of 65,536, which is exactly why the CD's ladder is the size it is.
Put the whole machine together and it feels almost too simple for what it does. A microphone turns your voice into a wiggle. Snapshots turn the wiggle into heights. The ladder turns heights into rung numbers, and bits spell the numbers out. Your voice is now a river of ones and zeros, and a river of ones and zeros can be copied, checked, and carried forever, without losing a single drop.
Squeezing the boring parts out#
One honest confession about that river: counted this way, it is a flood. A CD takes 44,100 sixteen-bit snapshots every second, which works out to about a million and a half bits for each second of music. Yet the same song streams to your phone comfortably at a tenth of that, and a whole video call fits in less. Somebody, somewhere, is squeezing.
The squeezing works because real messages are full of boring parts. The silence between two words is thousands of nearly identical snapshots; you don't have to spell out every one when "silence, for half a second" says it in a handful of bits. Neighboring snapshots are almost always close cousins, so you can send the small differences instead of the tall numbers. And some detail (a faint overtone buried under a cymbal crash) your ear would never miss, so it can simply be left behind. Squeezing the predictable and the unhearable out of the bits before they travel is called compression , and essentially every song, photo, and video that crosses the air today flies squeezed.
There is a beautiful law hiding under this, and it has a familiar author. In the same 1948 paper where Claude Shannon set the speed limit of every channel (a wall you will meet properly in The speed limit), he also proved that every message has a true size: the amount of genuine surprise in it, once every boring part is squeezed away, and no compressor, however clever, can shrink it further. Sending anything, anywhere, is the art of fitting the first number inside the second. Here are the three sizes, drawn to honest scale.
And notice the lovely two-step the rest of this book will dance: compression strips the wasteful patterns out of the bits, and then chapter 19's guardians will weave careful patterns back in, on purpose, to fight the noise. Nothing about a modern signal is accidental.
Which leaves one gap in the story, and it is the gap the rest of this book lives in. Our radio knobs, the height and speed and timing of chapters 5 through 7, all wiggle smoothly. A bit refuses to be smooth; it is a one or a zero and nothing in between. So how do you throw a one across a room? How do you fling a zero through a wall and be sure it lands as a zero? That is Part V: sending bits.