One button, and the vocal disappears from the song. What happened?
Play the song and press Karaoke. What disappears, and what stays?
Inside this lab: screens and terms
Phase as an address on the cycle, summing waves, shift versus invert, wave plus wave, pulse from two saws, Ø on mics, aligning in zoom and the karaoke button
Mystery · The vanishing vocal
Karaoke · One button, no vocal
One button, and the vocal disappears from the song. What happened?
Play the song and press Karaoke. What disappears, and what stays?
- The answer is waiting on the last screen. Meanwhile we’ll find out what phase is, and at the end we’ll come back to this song. Jump to the answer →
Phase · What phase is
Address · An address on the cycle
Phase is an address: where we are inside a cycle of the wave.
Drag the point around the circle, and see where it is on the wave.
- A sine is a circle spread out in time. The point goes round the circle, and its height is the wave. One turn is one cycle.
- Degrees count the cycle, not the time. 90° is always a quarter of a cycle, at any frequency.
- So the same address is a different time at each frequency. At 220 Hz a quarter cycle is 1.14 ms. At 440 Hz the cycle is half as long, and a quarter of it is 0.57 ms.
Read more: Harmonics Lab · The harmonics lab
Can You Hear It? · The ear doesn’t hear phase
A sine that starts at 0° and a sine that starts at 180°: do they sound the same?
Play A and B, and guess: which one starts at 180°?
- The ear hears frequency, level and shape, not an address. A sine on its own sounds the same from any starting point.
- A click isn’t phase. A sine that starts at 90° comes with a click, because it jumps from zero to the peak at once. You hear the jump, not the address. That’s why both waves here start at zero.
Summing · When two waves meet
Sum · Point by point
Two waves add up point by point, along the time axis.
Drag the cursor across the graph, and add the two numbers.
- The sum can be smaller than either wave. When nobody watches the phases, two loud channels can sound weaker than one. That’s phase cancellation.
- The same phase adds 6 dB. Two identical copies are 2 × the height of the wave.
- Full cancellation happens only when everything is identical: same frequency, same level, same shape, and 180° between them.
Read more: Decibel Lab · The decibel lab
Multiply · Multiplication is level
In audio, multiplication is level: every point of the wave is multiplied by the same number.
Turn ×: what happens to the wave when you multiply by 0.5, 2, 0 and −1?
- Everything that changes level is multiplication. A fader, Gain and Volume multiply every sample by the same number.
- A number between 0 and 1 turns down, and a number above 1 turns up. ×0.5 is −6 dB, and ×2 is +6 dB.
- The sign is the direction. Multiplying by a negative number turns the wave upside down, and multiplying by −1 turns it over without changing the level. That’s why a polarity invert works on the level axis.
Read more: Decibel Lab · The decibel lab
Shift & Invert · Time versus level
Two things you can do to phase: shift on the time axis, and invert on the level axis.
Turn Phase, then press Ø. What moves sideways, and what turns over?
- A shift is time. Degrees are a part of the cycle, so the same shift in degrees is a different time at each frequency.
- An invert is multiplying by −1. Like every multiplication in audio, it works on the level axis. You can also think of it as subtracting from zero. It inverts all the frequencies at once, and it has nothing to do with time.
- Noise-cancelling headphones work by polarity invert. A small microphone hears the noise outside, and the headphones play it inverted, so the noise and its inverted copy cancel each other in the ear. It works best on the lows: up high even a tiny delay is already a large shift in degrees, and the cancellation breaks down.
- 180° isn’t a polarity invert. An invert works on the level axis only. 180° can only be done on the time axis, and the result isn’t always similar.
- A complex sound has no single "180°". A move in time is 180° for one frequency only, and for the other frequencies it’s a different address. That’s why in a recording only Ø cancels everything.
- The button says Ø, and in English it’s called Polarity. On mixers it’s sometimes labelled Phase, but it inverts on the level axis and doesn’t move anything in time. That’s why engineers are precise and call it Polarity.
Read more: Decibel Lab · The decibel lab
Two Waves · A wave plus a wave
Sine + Sine · Weaker, then gone
Sine plus sine: a shift weakens it, and 180° or Ø makes it disappear.
Turn Phase up to 180°, then press Ø.
- With a sine, a shift changes only the level. The shape stays a sine, because a sine plus a sine at the same frequency is always a sine.
- A sine has only one harmonic. In the side panel you see one bar, which drops until it disappears.
Triangle + Triangle · Clipped peaks
Triangle plus triangle: a shift clips the peaks, and 180° or Ø makes it disappear.
Turn Phase up to 180°, then press Ø.
- A triangle has a constant slope. The wave rises at the same rate all the way up, and falls at the same rate all the way down.
- When one rises and the other falls, the sum doesn’t move. The rise of A and the fall of B cancel each other, and a flat line is left.
- That’s exactly the shape of a clipped triangle. A rising line, a flat line, a falling line, a flat line. That’s why it sounds like a triangle that was cut off.
Square + Square · Steps
Square plus square: a shift makes steps, and 180° or Ø makes it disappear.
Turn Phase up to 180°, then press Ø.
- A square is 50% up and 50% down. When that ratio isn’t kept, it’s a pulse.
- Two waves that switch at different times make steps. When both are up: a high step. When one is up and one is down: zero. When both are down: a low step.
- In a square, the second half is a mirror image of the first. So at 180° it cancels, just like an invert. With a pulse that’s no longer true.
- A pulse at 180° jumps an octave, just like a saw. At a PW of 25% or 75% the two pulses fit between each other and give a square an octave up. At any other PW you get a stepped wave, but it’s an octave up too.
Saw + Saw · An octave up
Saw plus saw: at 180° it jumps an octave, and Ø makes it disappear.
Turn Phase up to 180°, then press Ø.
- In a sine, a triangle and a square, the second half is a mirror image of the first. So for them a 180° shift looks like an invert.
- In a saw the second half isn’t upside down. At 180° every tooth falls in the middle of a tooth of the other wave, and there are twice as many teeth.
- Why an octave exactly: at 180° every odd harmonic arrives inverted and disappears, and every even harmonic arrives in the same phase and gets stronger. The second harmonic becomes the new fundamental, and the sound jumps an octave.
Read more: Harmonics Lab · The harmonics lab
Conclusion · What it all means
180° gives a result similar to a polarity invert only in symmetric waves.
Pick a wave, and switch between 180° and Ø: where is the result the same, and where not?
- In a symmetric wave, the second half is the first half, upside down. A shift of half a cycle brings the second half to where the first was, so you get exactly the inverted wave.
- In any other wave, 180° isn’t an invert. In a saw, a pulse and any real sound, the shift moves in time and the invert turns over in level, and the results are different.
- At 180°, every periodic wave that isn’t symmetric jumps an octave. The sum repeats itself every half cycle, so its frequency is doubled. A saw gives a saw an octave up, and a pulse of 25% or 75% gives a square an octave up.
- In harmonics: a symmetric wave is made of odd harmonics only. At 180° each of them arrives inverted, exactly as with an invert. A saw and a pulse also have even harmonics, and at 180° those arrive in the same phase and get stronger.
Read more: Harmonics Lab · The harmonics lab
Synthesis · Phase in synthesis
Pulse from Saws · Two saws, one pulse
A saw minus a shifted saw gives a pulse, and the phase becomes PW.
Leave Ø on, and turn Phase: the pulse width changes.
- This is how a pulse is often programmed in an algorithm: two saws, one inverted and shifted.
- What was a "phase shift" becomes a "pulse width". The same knob, a different name, depending on what you hear.
- The slopes cancel, and the jumps stay. Both saws have the same slope, so in the subtraction it disappears. Two jumps are left, one from A and one from B, and the distance between them is the Phase.
Octave by Level · Level makes the octave
Two saws at 180°: the level of the second one moves between the note and the octave.
Turn the Level of B from 0 to full, and play.
- The odd harmonics weaken as B rises. When it equals A they disappear, and the octave is left.
- The even harmonics don’t weaken. They arrive from A and B in the same phase and only get stronger, so they are there all the way.
- This works with any wave that isn’t symmetric. A saw, and a pulse at any width other than 50%. With a pulse of 25% or 75% the octave is a clean square.
Read more: Envelope Lab · The envelope lab
Moving Phase · A drifting phase
A phase that keeps moving sounds like two detuned oscillators.
Raise Rate: B drifts against A, and the sound starts to breathe.
- A moving phase is a slightly different frequency. If B keeps moving ahead of A, it plays faster, and two detuned oscillators are exactly that.
- Rate is the difference in frequency. A Rate of 1 Hz means B gets a whole turn ahead of A every second, and the fundamental disappears and comes back once a second.
Read more: Voice Lab · The voice lab
Studio · Phase in the studio
Ø on Mics · Two mics, one drum
Two mics on one drum can cancel each other.
Play the snare from both mics, and press Ø on the bottom one.
- Two mics on either side of one source see opposite movement. When the skin moves one way, it gets closer to one mic and further from the other.
- That’s why Ø goes on the bottom mic. After the invert both push in the same direction, and the body of the drum comes back.
- Mic placement means measuring phases and distances. Before recording, listen to both mics together, with Ø and without.
- This is a real recording of a whole bar. So you also hear the bleed of the rest of the kit, as in any live recording.
- Ø on the bottom mic is not a rule. On a snare tuned very low, the body can reach both mics in the same phase, and then Ø thins it out. So always listen to both settings and pick the fuller one.
Align in Zoom · Nudge until it fits
Distance between mics is a difference in time, and you line it up in a zoomed view.
Move Nudge until the two waves fall on top of each other.
- Editing in a zoomed view sometimes matters more than work on the mixer. It solves the problem before it reaches the EQ and the compressor.
- Distance is time. Sound travels about 34 cm every millisecond, so a far mic hears it later.
- A move in time is a different phase for every frequency. At one frequency it’s 180° and cancels, and at double that frequency it’s 360° and adds up. That’s why Ø alone doesn’t solve it, and why you line up in time.
- The first notch is at the frequency for which the delay is half a cycle. With a 1 ms delay that’s 500 Hz, and the notches repeat every 1000 Hz.
Mystery Solved · The answer
What sits in the middle is identical on both sides, and L minus R removes it.
Start in stereo, press Ø on R, then move both Pan knobs to the centre.
- Stereo panning is a difference between two channels. A sound in the middle is identical in L and R. A sound to one side is louder in one of them.
- Ø on R in stereo: nothing has disappeared yet. But what sits in the middle reaches the two speakers inverted, and the ear can’t find a place for it. That’s why your head feels "thrown" to one side.
- In the centre the two channels add up. When R is inverted, the sum is L plus inverted R, that is L − R: whatever is identical on both sides cancels.
- A stereo reverb doesn’t disappear. Its tails are different on each side, so L − R doesn’t remove them. In this song the vocal’s reverb was summed to mono too, so it disappears with the vocal. On a normal record the vocal reverb is usually stereo, and it stays in the karaoke like a shadow of the vocal.
- An instrument near the middle gets weaker, and an instrument on the side stays whole. In this song the band is spread wide, so in the centre with Ø the song drops by only about 5 dB, and the vocal disappears. The lab turns what is left back up to the level of the song (by up to 10 dB), so you can compare.
Read more: Decibel Lab · The decibel lab
Formulas · Any formula you like
Every formula of L and R is a mix: plus is a sum, and minus is an invert.
Build a formula: start with L − L, then switch to L − R.
- Minus is an invert, and plus is a sum. L − R is L plus inverted R: the invert and the sum from part 3, on a whole song.
- L − R is the difference. Whatever is identical in both channels cancels, and only what differs between them is left.
- R − L sounds like L − R. It’s the same difference, just inverted, and the ear can’t hear an invert.
Read more: Decibel Lab · The decibel lab
Terms in this lab
- Phase
- The position within the wave’s cycle at a given moment. 0 is the start of the cycle.
- Cycle
- One complete oscillation of the wave, until the shape starts to repeat. The time of one cycle is called the period.
- Sine
- A simple wave: a smooth oscillation at a single frequency only. The sine is the atom of sound: every other waveform is built from sines.
- Degrees
- The unit phase is measured in: a whole cycle of the wave is 360 degrees, like a full turn of a circle, so 90 degrees is always a quarter of a cycle.
- Oscillator
- A generator that produces a repeating wave at the frequency it is set to. It is the sound source of a synth.
- Phase Cancellation
- What happens when two waves add up while one is positive and the other negative at the same moment: the sum is smaller than either of them, and reaches complete silence when the waves are identical and opposite.
- 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.
- 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.
- Active Noise Cancellation · ANC
- A technology that cancels noise: a microphone picks up the noise, and the device plays it inverted, so the noise and its inverted copy cancel each other.
- Harmonic
- A sine whose frequency is a whole-number multiple of the fundamental: 1×, 2×, 3×. The first harmonic is the fundamental itself.
- 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.
- Pulse
- A wave that jumps between two values, up and down. The width sets how much of each cycle the wave spends up.
- Width · Pulse Width
- The percentage of the cycle a pulse wave spends up. At 50% the pulse is a square wave.
- Octave
- The distance between two notes where the frequency of one is double the other. C4 and C5 are the same note, in different octaves.
- Fundamental
- The lowest sine in a complex wave. It sets the pitch of the sound.
- Symmetric Wave
- A wave whose second half-cycle is an upside-down mirror image of the first half: the same shape, below zero. Sine, triangle and square are symmetric waves; saw and pulse (at any width other than 50%) are not.
- LFO · Low Frequency Oscillator
- A slow oscillator, usually below 20 Hz. You don’t hear it on its own: it moves a parameter of the sound.
- PWM · Pulse Width Modulation
- Changing the width over time, usually with an LFO. The harmonics come and go, and the sound “breathes”.
- Envelope · ADSR
- A voltage, triggered by the gate, that rises and falls in a set shape: Attack, Decay, Sustain and Release. It shapes how a sound starts, holds and ends.
- Detune
- A small shift of an oscillator’s pitch up or down. When several oscillators play the same note with Detune, they’re not tuned exactly to each other, and the sound is thicker.
- Super Saw
- The sound of several saws playing the same note, each drifting slowly in phase against the others, so they sound like detuned saws that fill out the sound.
- Spectrum
- A display of all the frequencies in a sound and the level of each.
- Comb Filtering
- The notches in the spectrum that appear when a sound is added to a slightly late copy of itself: at every frequency for which the delay is half a cycle, the two copies cancel each other, and the spectrum looks like a comb.
- Nudge
- A small move of a track forward or back in time in the production software, to line it up with another track.
- Mono
- Sound on a single channel. When stereo is folded to mono, L and R are added into one sum, which comes out the same from every speaker.
- Pan
- Where a sound sits between L and R: in the middle it is the same in both channels, and to one side it is louder in one of them.
- Stereo
- Sound on two channels, L and R, each coming out of a different speaker, so a sound can be heard from the left, from the right or from the middle.
Something broken, inaccurate or missing?