DSP 101
M11 · L03
Module 11: Multirate Signal Processing

Sample Rate Conversion

Combine upsample by L and downsample by M to convert between any rational ratio — one efficient polyphase structure, no intermediate rate required.

01 / 11
DSP 101
M11 · L03
Motivation

Why Convert Rates?

Integer up/downsampling only covers multiples. Real systems need arbitrary rational ratios: CD ↔ DAW, SDR channel selection, video transcoding.

44.1
CD sample rate (kHz)
48
Broadcast / DAW rate (kHz)
L/M
Rational conversion factor
02 / 11
DSP 101
M11 · L03
Structure

The Cascade

Upsample by L → single lowpass filter → downsample by M. The filter does both jobs: removes images and prevents aliasing.

Combined Filter Cutoff
\omega_c = \min\!\left(\frac{\pi}{L},\frac{\pi}{M}\right)
03 / 11
DSP 101
M11 · L03
Classic Example

44.1 ↔ 48 kHz

  • Ratio: 48 000 / 44 100 = 160 / 147
  • Upsample by L = 160 → intermediate rate 7.056 MHz
  • Downsample by M = 147 → output at 48 kHz
  • Polyphase avoids computing the 7 MHz rate at all
04 / 11
DSP 101
M11 · L03
Filter Design

One Filter, Two Jobs

Cutoff = π/max(L, M). Gain = L. Stopband attenuation ≥ 80 dB for audio (120 dB for hi-res). A Parks-McClellan equiripple FIR is the standard choice.

Binding constraint
If L > M: anti-imaging governs (π/L). If M > L: anti-aliasing governs (π/M).
05 / 11
DSP 101
Interactive
Try It

Adjust L and M

Change L and M to explore the output rate and the filter cutoff. The amber region is the passband; red shows the aliasing/imaging threat zone.

L4
M3× → f_out/f_in = 1.33
06 / 11
DSP 101
M11 · L03
Efficiency

Polyphase SRC

Decompose the N-tap filter into L branches. For each output sample, evaluate only one branch of N/L taps. Step through branches with stride M mod L.

Cost Per Output Sample
\text{Cost} \approx \frac{N}{L} \text{ mult / output sample}
07 / 11
DSP 101
M11 · L03
Advanced

Asynchronous SRC

When the ratio drifts (independent clocks, network jitter), a fractional phase accumulator picks the correct polyphase branch at each output instant — handling any ratio continuously.

  • Accumulate phase in high precision fixed-point
  • Integer part → input sample index
  • Fractional part → polyphase branch selector
  • Used in AES67, Dante, SDR front-ends
08 / 11
DSP 101
M11 · L03
Applications

Where SRC Appears

  • Pro audio: every DAW converts between 44.1, 48, 88.2, 96 kHz seamlessly
  • SDR: wideband ADC → narrow channel at arbitrary rate
  • Video: 23.976 ↔ 25 ↔ 29.97 ↔ 60 fps transcoding
  • Telecom: interface between network segments at different clock rates
09 / 11
DSP 101
Sample Rate Conversion

Up by L, down by M, one filter between

Four checks on rational L/M conversion, the shared filter, and the 44.1↔48 kHz case.

Question 1 of 0
Score 0/0

10 / 11
DSP 101
Up Next
Coming Up

Filter Banks

Partition a wideband signal into subbands using analysis and synthesis filter banks — the foundation of audio codecs, OFDM, and wavelet transforms.

Next Lesson
11 / 11