Nyquist theorem: sample rate must be >= 2x the highest frequency; 44.1 kHz captures up to ~22.05 kHz (human hearing tops ~20 kHz)
Bit depth sets dynamic range: ~6.02 dB per bit, so 16-bit = ~96 dB, 24-bit = ~144 dB of range
Lossy codecs use a psychoacoustic model: they bin sounds the ear cannot hear (masking) - that is perceptual coding, NOT pure source coding
How it works
Read the raw audio stream (PCM samples) coming off the file
Predict each sample from the ones before it - silence and tones are highly predictable
Store only the small prediction ERROR, not the full value (this is the clever packing)
Entropy-code those errors: frequent small values get short bit codes, rare big ones get long codes
Wrap it in a container (FLAC/ALAC) with headers so a decoder can rebuild it
Decode = run the maths backwards to get the EXACT original samples back
Real examples
A 5-minute stereo WAV (~50 MB) saved as FLAC drops to ~25-30 MB, still bit-perfect for the show
Emailing a band their multitrack stems as FLAC instead of WAV halves the upload time
A silent intro or sustained pad compresses heavily because it is so predictable (low entropy)
White noise or a dense full mix barely compresses - it is near-random, high entropy, little redundancy to remove
Archiving a festival's recorded sets: FLAC saves ~half the drive space with no audible or measurable loss
How it helps in live sound
Archive show recordings and stems as FLAC (lossless) - half the storage, zero quality loss for re-mixing later
Send mastered tracks to clients as FLAC or 24-bit WAV, never lossy, so they keep full headroom
Run virtual soundcheck files and backing tracks as WAV/FLAC on the desk - never MP3, decode artefacts can glitch
For walk-in/background playback off a phone, 320 kbps AAC/MP3 is fine and saves space
Keep your master archive lossless; only make lossy copies for casual streaming or quick previews
Label sample rate + bit depth on every file (e.g. 48k/24-bit) so the system clocks correctly and avoids resampling
Everyday analogy
Like vacuum-sealing a doona: same doona, half the bag, and it puffs back to identical when you open it.
Watch out
Myth: 'compressing a file always loses quality.' Wrong - lossless (FLAC/ZIP) is bit-for-bit identical; only LOSSY codecs (MP3/AAC) bin real data.
Fun fact
Shannon proved the hard floor in 1948: no codec, ever invented or yet to come, can losslessly compress below the source's entropy - it is a law of information, like a speed limit.
Key takeaways
Lossless = exact copy back; lossy = data gone forever - know which you are using
Entropy H is the hard floor: you cannot losslessly go smaller than the information actually present
Compression removes REDUNDANCY (repeats, silence, predictable bits), not the music itself
Predictable audio shrinks a lot; random/dense audio barely shrinks
Archive lossless (FLAC/WAV), share lossy only when quality does not matter