Enchant.
Tools / Audio Concepts / 6. Audio Compression & Perceptual Coding
6. Audio Compression & Perceptual Coding · Concept 3 of 6

MDCT

The specific maths tool most music formats use to turn a slice of sound into its list of frequencies without clicks at the joins.

MDCT overlapping blocks and overlap-add reconstructionAudio sliced into 50% overlapping windowed blocks, transformed to frequency bins, then overlap-added back with no click at the join.MDCT: overlap, transform, overlap-add50% overlapping windowed blocks & click-free joins1. Audio stream2. Blocks overlap 50% (2N in)overlapoverlapblock 1block 2block 33. MDCT → N binsfrequency2N samples → N coeffs (2:1)4. Decoder overlap-add → TDAC cancels the join (no click)seamlessIn: MP3 / AAC / AC-3AAC long N=1024 ≈ 23 msshort N=128 on transients

MDCT slices audio into 50%-overlapping windowed blocks, reads off N frequency bins per block, then overlap-adds so TDAC cancels the joins with no click.

What it is

The maths tool inside MP3, AAC and AC-3 that turns overlapping slices of audio into frequency lists without clicks at the joins.

Key facts

How it works

  1. Slice audio into overlapping blocks, each sharing 50% (half) its samples with the next block.
  2. Multiply each block by a smooth window (sine or KBD) so the edges taper to near zero.
  3. Run the MDCT cosine sum: convert 2N time samples into N frequency coefficients.
  4. Quantise and throw away the quiet/masked coefficients (this is where compression happens).
  5. Decoder runs the inverse MDCT to get overlapping time blocks back.
  6. Overlap-add the blocks; TDAC cancels the aliasing so the joins are seamless, no clicks.

Real examples

How it helps in live sound

Everyday analogy

Like cross-fading film scenes by overlapping the cut so the picture never jumps, then the two overlaps add back to one clean shot.

Watch out

Myth: the overlap wastes data or doubles the file. Truth: MDCT outputs only N coefficients from 2N samples (2:1), and TDAC makes the overlap free, with zero clicks.

Fun fact

A single MDCT block is mathematically non-invertible on its own (it throws away half the data as time aliasing). Only when you overlap-add the neighbouring block does the aliasing cancel and the audio reappear perfectly.

Key takeaways

  • MDCT is the frequency engine inside MP3, AAC and AC-3.
  • Blocks overlap 50%; 2N samples in, N coefficients out.
  • TDAC plus a Princen-Bradley window = seamless, click-free joins.
  • Short blocks on transients stop pre-echo; long blocks for steady tones.
  • For live playback prefer lossless; MDCT loss is permanent and stacks if re-encoded.
← Previous
Transform Coding
☰ All 123 concepts

Need the gear and a crew who know this stuff?

Enchant Entertainment hires and operates sound, lighting and staging across Perth and regional WA.

Get a quoteAll concepts