A decibel doesn’t measure an amount. It measures a ratio between two things.
Turn Level, and listen: A is the reference, and B is measured relative to it.
Inside this lab: screens and terms
The decibel as a ratio, dB SPL and kinds of dB, dBFS and Headroom, how much to lower each channel when summing, mixing as adding samples, inverting vs. phase shift, Gain Staging and 32 bit float
Decibel · What a decibel is
Ratio · A decibel is a ratio
A decibel doesn’t measure an amount. It measures a ratio between two things.
Turn Level, and listen: A is the reference, and B is measured relative to it.
- A decibel is a ratio between two values of the same kind. What you measure, against a reference. That’s why “+10 dB” on its own doesn’t say how loud a sound is, only how much louder it is than something else.
- The name comes from Alexander Graham Bell, the inventor of the telephone. In the 1920s Bell Labs engineers set a unit for measuring signal loss in telephone lines, and called it the bel.
- One bel is 10 times the power, and a decibel is a tenth of a bel. A bel is too big to work with, so a tenth of it is used: deci means a tenth, as in decimeter. 10 dB is one bel.
- For wave height the scale is doubled. Power grows with the square of the wave height, so 10 times the wave height is 20 dB, and 2 times the wave height is about 6 dB.
- 0 dB doesn’t mean silence. 0 dB means the value equals the reference. A negative number means it’s quieter than the reference.
- That’s why every kind of dB has its own name. The letters after dB say what the reference is: SPL, FS, u, V. You see this on the “Kinds of dB” screen.
SPL & the Ear · dB SPL and the ear
dB SPL measures air pressure relative to the quietest sound the ear can hear.
Press Play, turn SPL, and go from leaves in the wind to a jet.
- SPL is Sound Pressure Level. The reference is 20 micropascals, the quietest pressure a healthy ear can hear, so 0 dB SPL is the threshold of hearing.
- The ear hears in ratios, not differences. Every 10 dB sounds about twice as loud, even though the power grows 10 times.
- The ear’s range is enormous. From the threshold of hearing to a jet, the pressure grows 10 million times. In decibels that’s from 0 to 140, which is why decibels are used.
- The ear doesn’t hear every frequency at the same level. It’s less sensitive to deep bass and very high frequencies. That’s why noise is also measured in dBA, on the next screen.
- Above 85 dB over time, the ear gets damaged. According to NIOSH, 85 dBA is allowed for up to 8 hours a day, and every additional 3 dB halves the time. At concerts and in the studio too.
- The sounds here only simulate the places. Between the leaves and the plane they get louder by only about 24 dB, not 115 dB as in reality. A speaker can’t get there, and it shouldn’t.
- The numbers on the scale are approximate. A sound’s level depends on the distance from it and the place. They’re taken from standard hearing-safety tables.
Kinds of dB · Same math, different zero
Each kind of dB has a different reference, and so different numbers.
Turn Level: all the scales move by the same number of dB, but each starts from a different place.
- Every kind of dB is the same math: a ratio in decibels. The difference is the reference, and it’s written in the letters after dB.
- dB SPL: pressure in the air, relative to the threshold of hearing. 0 is the quietest the ear can hear, and all the numbers are above it.
- dBA: dB SPL corrected for the ear. At each frequency the measurement is corrected for the ear’s sensitivity, so deep bass measures lower. It’s used in noise meters and hearing-safety standards.
- dBu and dBV: voltage in a cable. In dBu the reference is 0.775 volts, and in dBV it’s one volt. A signal can be above 0 or below it. Professional gear works at about +4 dBu, and consumer gear at about −10 dBV, about 12 dB lower.
- dBFS: numbers inside the converter and the computer. 0 is the ceiling, and everything else is negative. The rest of the lab is about this one.
- The relationship between the scales depends on the gear. On the microphone’s sensitivity, the preamp’s gain and the converter’s calibration. Here, as an example: 94 dB SPL at the microphone comes out of the preamp at +4 dBu, into a converter where +4 dBu is −20 dBFS.
Read more: ADC Lab · The converter lab
dBFS · The ceiling
dBFS · The ceiling
In dBFS the ceiling is 0, and every sound is measured by how far below it it is.
Drag the Fader, and notice: every 6 dB the wave doubles.
- 0 dBFS is the highest value that can be written. That’s why every sound is measured by how many dB it is below the ceiling, and the numbers are negative.
- dB counts ratios, not differences. −6 dB is half the wave height, −12 dB a quarter, and −20 dB a tenth.
- Multiplication becomes addition. Lowering by 6 dB and another 6 dB is 12 dB: half of half, that is, a quarter.
- The master goes out to the speakers and to the file. Whatever goes past 0 dBFS in it is cut, and what’s cut doesn’t come back.
- Why is there a ceiling at all? Every sample is stored as a number, and the numbers in a file have a last value. You can see this in ADC Lab.
Read more: ADC Lab · The converter labBits, Bytes and Sampling
Summing · Summing channels
How Much? · How much to lower?
When you sum channels, the master rises. How much do you need to lower each one?
Answer the question, then lower LINK until CLIP goes off.
- Twice is +6 dB. Two identical channels give a wave twice as high, so you lower each one by 6 dB.
- Every doubling adds another 6 dB. 2, 4 and 8 identical channels: 6, 12 and 18 dB. Three channels are about 9.5 dB, between two and four.
- Where does this happen in a mix? Everywhere. Every channel you add needs room in the Headroom.
- The experiment here is sterile. Identical noise channels, all at 0 dB, just to illustrate. In a real mix the channels are dynamic, sometimes quiet and sometimes loud, but the idea stays the same: at every moment there’s limited Headroom, and all the channels share it.
- Why exactly twice? On the next screen, “Mixing = Adding”.
Mixing = Adding · Adding samples
Mixing is adding: at every moment, the channels’ samples are added together in the master.
Move channel 1’s Fader, and follow the numbers in the table. With Speed you can slow down or speed up the display.
- Every sample is a number. Each channel holds a list of numbers, one for every moment.
- The master adds the numbers, sample by sample. The first sample of every channel is added into the first sample of the master, then the second, all through the song.
- The Fader multiplies. −6 dB is times 0.5, and −12 dB is times 0.25. A mixer is just “multiply and add”.
- Inverting is on the level axis, shifting is on the time axis. Inverted flips the sign of every sample and leaves it at the same moment. Phase Shift leaves the numbers as they are, and moves all of them in time.
- On a single sine they look the same. A sine shifted by half a cycle, that is, by 180 degrees of phase, looks exactly like an inverted sine, so it also cancels the original.
- On a real sound they’re not the same. On drums, an inverted copy cancels everything. A shifted copy cancels only some of the frequencies, and the sound turns hollow.
Read more: Phase Lab · Shift & InvertADC Lab · The converter labBits, Bytes and Sampling
Different Channels · RMS rises 3 dB
Different channels add up less: the RMS rises only 3 dB with each doubling.
Switch between Copy and Other, and compare the Peak and the RMS in the master.
- RMS is the average level. It’s closer to what the ear feels as loud. Peak is just the highest peak.
- With different channels, the energies add up. Twice the energy is +3 dB, so every doubling of different channels adds 3 dB to the RMS.
- The peaks meet only sometimes. That’s why the Peak rises less than 6 dB. But over a whole song the peaks can meet, and that’s another reason to leave Headroom.
- A real mix is close to different channels. A double of the same take, or a kick and a bass on the same note, are close to an identical copy.
Read more: Dynamics Lab · Peak vs. RMS
Space in the Mix · EQ and frequency ranges
EQ · Space in the mix
In the master the channels add up at every frequency: where they overlap, the sum rises.
Turn on EQ, and watch in the spectrum how each channel gets its own range.
- At each frequency, only the channels that have sound at that frequency add up. A channel with no lows adds nothing to the master’s lows.
- Copies, each filtered to a different range, add back up to a single channel. Four copies without EQ rise 12 dB. With EQ, the sum is close to the level of one channel.
- In a real mix the channels are different, so the difference is smaller. But in every range where several channels play together, they add up and take Headroom.
- EQ that removes what a channel doesn’t need makes room for the others. Fewer channels overlap in the same range, and each one sounds clearer.
Read more: Filter Lab · The filter labHarmonics Lab · White noise and pink noise
Starting a Mix · Gain Staging
Start a mix with low Faders, and leave Headroom in the master.
Turn on channels one by one, and lower LINK to the Target line.
- Gain Staging is planning the level at every stage. From the recording, through the channels, to the master: every stage keeps Headroom, and nothing clips.
- Start low so there’s room. For the channels still to come, for processors that boost, and for mastering.
- Lower everything together, not one at a time. That way the ratios between the channels are kept, and the mix sounds the same, only quieter.
- The final loudness comes in mastering. The mix doesn’t need to be loud. It needs to be clean and balanced.
Read more: Dynamics Lab · Peak vs. RMS
32-bit Float · An insurance policy
32-bit Float · An insurance policy
In 32 bit float whatever went past 0 dBFS is kept, and lowering the level brings it back.
The same mix, too loud, saved in two files. Switch Listen between them, and listen.
- Every sample is stored in the file as a number. A 24 bit file has a highest number, and that’s 0 dBFS. A louder sample is stored as the highest number, and the peak goes flat.
- A flat peak sounds like distortion. The wave is no longer in its original shape, and sounds that weren’t there get added: buzz in the bass, cracks in the drums.
- Lowering the level doesn’t bring back what was cut. Once the file is saved, the part that was cut no longer exists in it. Clip Gain lowers the whole file, the flat peaks too.
- In 32 bit float there’s no ceiling in the file. Whatever went past 0 dBFS is stored at its true height, so after lowering the level the wave comes back whole. How that’s possible is shown in ADC Lab, in the 32 bit float part.
- Inside your production software everything is float. A channel that goes past 0 dBFS in the middle of the mix isn’t cut. Only what goes out is cut: to the speakers, through the DAC, or to a 24 or 16 bit file.
- float is insurance against mistakes, not a way of working. It doesn’t save clipping at the input of the audio interface, in the ADC, and some plugins distort when they get a high level. That’s why you work with Headroom.
Read more: ADC Lab · The 32 bit float part
Synth Mixer · In the synth
Synth Mixer · Overloading the filter
Three oscillators at maximum overload the filter input.
Raise OSC 1, OSC 2 and OSC 3 one after another, and watch the filter input.
- The synth’s mixer adds the oscillators, like a studio mixer. Two oscillators on the same note add up to 6 dB, and three up to about 9.5 dB.
- The filter input has a limit. In an analog filter, overloading the input rounds off the peaks, and the sound gets more compressed and rougher.
- Some synths overload the input on purpose. It’s a familiar color on analog synths, but it’s a choice, not a default.
Read more: MINI·DFilter Lab · The filter lab
Terms in this lab
- Decibel · dB
- A logarithmic unit for level and gain that counts ratios, not differences: every 6 dB is roughly a doubling of the wave’s amplitude.
- Reference
- The value you measure against in decibels: it’s always 0 dB, and every measurement says how many dB it is above or below it.
- Bel
- A unit of ratio named after Alexander Graham Bell, in which each bel is 10 times the power. In practice a tenth of it is used, the decibel.
- dB SPL · Sound Pressure Level
- A measure of the air pressure a sound creates, relative to 20 micropascals, the quietest pressure a healthy ear can hear.
- dBA · A-weighted Decibels
- A measure of dB SPL corrected for the ear’s sensitivity at each frequency, so deep bass and very high frequencies measure lower.
- dBu · Decibels unloaded
- A measure of voltage in an audio cable relative to 0.775 volts, used by professional audio gear (about +4 dBu).
- dBV · Decibels Volt
- A measure of voltage in an audio cable relative to one volt, used by consumer audio gear (about −10 dBV).
- dBFS · Decibels Full Scale
- A unit that measures the level of digital audio relative to the ceiling: 0 dBFS is the highest value, and everything below it is written as negative numbers.
- Headroom
- The space between the sound’s peak and the ceiling, 0 dBFS: how many dB you can still turn it up before the peaks are cut.
- Clipping
- Cutting off the peaks of the wave when the sound goes past the highest value that can be written: the peaks go flat, and the sound distorts.
- Master
- The channel in the mixer where all the channels are summed into one, which goes out to the speakers and to the exported file.
- White Noise
- Noise with the same level at every frequency. It sounds bright and hissy, because most of the frequencies we hear are high.
- Sample
- One measurement of the wave’s level at a given moment, stored as a number.
- Polarity Invert
- Flipping the sign of every sample, so every positive value becomes negative and vice versa, without moving the sound in time.
- Phase Shift
- Moving a sound forward or backward in time, measured in degrees of a cycle, where 360 degrees is a whole cycle.
- Phase
- The position within the wave’s cycle at a given moment. 0 is the start of the cycle.
- Peak / RMS
- Two ways to measure level. Peak follows the peaks, and RMS the average level, closer to what the ear feels as loud.
- Spectrum
- A display of all the frequencies in a sound and the level of each.
- Pink Noise
- Noise that falls by 3 dB per octave, so every octave holds the same energy. To the ear it sounds balanced.
- EQ · Equalizer
- A processor that boosts or cuts a range of frequencies. A regular EQ works all the time, by the same amount.
- Gain Staging
- Setting the level at every stage of the audio path, from the recording through the channels to the master, so that every stage keeps Headroom and nothing clips.
- 32 bit float · 32-bit Floating Point
- An audio file format in which each sample is stored as a number in two parts, a range and a position within the range, so it has no ceiling and can store values above 0 dBFS too.
- Clip Gain
- Changing the level of the audio clip itself, before the Fader and before any processing in the channel.
- DAC · Digital to Analog Converter
- Digital-to-analog converter: turns the numbers back into a voltage that moves the speaker or headphones. Found in every device that plays sound: an audio interface, a phone, Bluetooth headphones, a digital synth.
- ADC · Analog to Digital Converter
- Analog-to-digital converter: measures a continuous voltage, for example from a microphone or a guitar, and turns it into a list of numbers a computer can store and process. Found in every audio interface, phone and portable recorder.
- Oscillator
- A generator that produces a repeating wave at the frequency it is set to. It is the sound source of a synth.
Something broken, inaccurate or missing?