Docsity

Basic IIR Filters and Applications, Rezime od Fizika

Delimični pregled teksta

Preuzmite Basic IIR Filters and Applications i više Rezime u PDF od Fizika samo na Docsity!

E85.2607: Lecture 2 – Filters

1 Basic IIR filters

2 Applications

Basic filters

LP BP

HP BR

H(f)

0 fc f/Hz H(f)

0 fc f/Hz

H(f)

0 fch f/Hz H(f)

0 f/Hz

fcl

fcl fch

Resonator

Notch

H(f)

0 f/Hz H(f)

0 fc f/Hz

fc

fc cutoff or center frequency fb bandwidth Q “quality factor” Q = f fbc

Building blocks: Allpass filter

H(z) =

B(z) z−N^ B(z−^1 )

=

b 0 + b 1 z−^1 +... + bN− 1 zN−^1 + bN z−N bN + bN− 1 z−^1 +... + b 1 zN−^1 + b 0 zN

Where are the poles and zeros?

Building blocks: Allpass filter

H(z) =

B(z) z−N^ B(z−^1 )

=

b 0 + b 1 z−^1 +... + bN− 1 zN−^1 + bN z−N bN + bN− 1 z−^1 +... + b 1 zN−^1 + b 0 zN

Where are the poles and zeros?

What about the frequency response?

Tunable lowpass/highpass filters

x(n) A(z) y(n)

LP/HP+/- 1 /

Why does this work?

LP/HP frequency response

− (^100) 0.1 0.2 0.3 0.4 0.

− 5

0

Magnitude Response, Phase Response, Group Delay

Magnitude in dB

− (^1000) 0.1 0.2 0.3 0.4 0.

− 50

0

Phase in degrees

(^00) 0.1 0.2 0.3 0.4 0.

1

2

f/fS →

Group delay in samples

− (^100) 0.1 0.2 0.3 0.4 0.

− 5

0

Magnitude Response, Phase Response, Group Delay

Magnitude in dB

(^00) 0.1 0.2 0.3 0.4 0.

50

100

Phase in degrees

(^00) 0.1 0.2 0.3 0.4 0.

1

2

f/fS →

Group delay in samples

Tunable bandpass/bandreject filters

x(n) A(z) y(n)

½

BP/BR -/+

typo

BP/BR frequency response

− (^100) 0.1 0.2 0.3 0.4 0.

− 5

0

Magnitude Response, Phase Response, Group Delay

Magnitude in dB

− (^1000) 0.1 0.2 0.3 0.4 0.

− 50

0

50

100

Phase in degrees

(^00) 0.1 0.2 0.3 0.4 0.

5

10

15

f/fS →

Group delay in samples

− (^100) 0.1 0.2 0.3 0.4 0.

− 5

0

Magnitude Response, Phase Response, Group Delay

Magnitude in dB

− (^1000) 0.1 0.2 0.3 0.4 0.

− 50

0

50

100

Phase in degrees

− (^60) 0.1 0.2 0.3 0.4 0.

− 4

− 2

0

2 x 10

14

f/fS →

Group delay in samples

Equalizers

x(n) (^) ShelvingLF (^) PeakMF PeakMF ShelvingHF y(n) Cut-off frequency f Bandwidth fGain G in dBb c

Cut-off frequency f Bandwidth fGain G in dBb c

+12+ -6^0

Cut-off frequency fGain G in dB c Cut-off frequency fGain G in dB c

f

f (^) c f (^) c f (^) c f (^) c

f (^) b f (^) b G/dB

Chain of simple filters to shape spectrum Low/high shelf H(z) = 1 + (10G^ /^20 − 1) HLP/HP (z) Peak H(z) = 1 + (10G^ /^20 − 1) HBP (z) Parameters: Gain, center frequency, bandwidth (Q) Applications: mixing, compensate for room acoustics, genre controls

Time-varying filters: Wah

x(n) y(n)

1-mix

mix

Bandpass filter with time varying center frequency Mimics formant resonances in speech

Reading

Introduction to Digital Filters Elementary Audio Digital Filters DAFX, Chapter 2 (if you have it)