Professional Documents
Culture Documents
Lecture 7:
Filters & Reverb
1. Filters & EQ
2. Time delay effects
3. Reverb
Dan Ellis
http://www.ee.columbia.edu/~dpwe/e4896/
2013-03-04 - 1 /17
1. Filters & EQ
Different formats
Low/Mid/High, Parametric
Graphic EQ
E4896 Music Signal Processing (Dan Ellis)
2013-03-04 - 2 /17
EQ filters
A(z)
-0.5
-0.2
-0.4
-0.6
-10
-1
1 Re{z}
-20
{A(z)}
10
0.5
-1
|A(z)|
20
level / dB
Im{z}
use allpass
-0.8
0
0.2
0.4
0.6
0.8
0.2
0.4
0.6
0.8
y[n]
level / dB
x[n]
1 + g A(z)
20
g = -1
10
g=0
g = -1...1
-10
-20
g=1
0.2
0.4
0.6
0.8
s03-allpass1.pd
2013-03-04 - 3 /17
Allpass Filters
A(z)
)
0.6 + z
A(z) =
1 0.6z
-0.5
0
1 Re{z}
-20
{A(z)}
-0.4
-0.6
-10
-1
-0.2
10
0.5
-1
0.6z
|A(z)|
20
level / dB
Im{z}
Dm (z
Dm (z)
-0.8
0
0.2
0.4
0.6
0.8
0.2
0.4
0.6
0.8
d ( )
d
2013-03-04 - 4 /17
Group Delay
g ( c)
d ( )
d
8000
Frequency
6000
4000
2000
0.5
1.5
Time
2.5
0.5
1.5
Time
2.5
8000
Frequency
6000
4000
2000
2013-03-04 - 5 /17
Parametric EQ
Im{z}
10
dB
0.5
0
-0.5
-10
-20
-0.5
-1.5
-30
-1
-1
-0.5
0.5
Re{z}
{A(z)}
0.2
0.4
0.6
0.8
-2
0.2
0.4
0.6
0.8
angle frequency
radius slope bandwidth
x[n]
+
A(z)
y[n]
1 + g A(z)
20
level / dB
g=1
10
g=0
g = -1...1
-10
-20
g = -1
0
0.2
0.4
0.6
0.8
s06-allpass2.pd
2013-03-04 - 6 /17
Time-Varying Filters
Classic Wah-Wah ?
Iterated Filters...
s07-wahwah.pd
2013-03-04 - 7 /17
2. Time Delays
x[n]
delay
y[n]
1
|H(ej)|
h[n] = [n ]
H(ej) = ej
{H(ej)}
1
0
n
2013-03-04 - 8 /17
Fractional Delays
sin (n
(n
)
)
= sinc(n
1
0.8
sinc(n-)
0.6
0.4
h[n]
0.2
0
-0.2
-0.4
10
time / samples
2013-03-04 - 9 /17
Comb Filters
x[n]
y[n]
+
delay
h[n]
Im{z}
1+g
0.5
1
0
-0.5
1- g
0
-1
/
2/
3/
4/
5/
...
-1
-0.5
0.5
1
Re{z}
s10-comb.pd
2013-03-04 - 10/17
x[n]
h[n] 1
delay
g2
g3
g4 ...
n
Im{z}
0.5
0
-0.5
1
1
1- g
0
-1
/
2/
3/
4/
5/
...
-1
-0.5
0.5
1
Re{z}
s11-iircomb.pd
2013-03-04 - 11/17
delay line
y[n]
2013-03-04 - 12/17
3. Reverberation
l(t)
delayed relative
to direct path
different at
each ear
Direct-toReverberant...
direct
reflected
t
r(t)
R/
SourceEar is ~ LTI
0.1
0.05
0
-10
0.1
-20
6000
0.05
-30
-40
-0.05
-50
4000
-0.05
-0.1
8000
2000
0.2
0.4
0.6
0.8
time / s
-0.1
0
-60
0.01
0.1
0.2
0.02
0.3
0.4
time 0.5
/s
0.03
0.6
0.7 time / s
-70
2013-03-04 - 13/17
reflected
path
source
listener
Reflections quickly
build up & merge
later part of
reverb is like
decaying noise
0.1
0.05
0
-0.05
0 05
0.1
-0.1
0.05
0.01
0
0.2
0.4
0.
.4 0.005 0.6
-0.05
-0.005
-0.1
0.01
0.02
0.03
-0.01
0.2
0.8
0.3
0.4
0.5
0.6
2013-03-04 - 14/17
Nested Allpass
FIR Comb
2
1.5
Allpass
z-k
-g
H(z) =
1 - gz-k
-g
0.5
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
6
4
x[n]
y[n]
+
z-k
h[n]
1-g2
g(1-g2) 2
g (1-g2)
k
g
g,k
3k
iIR Comb
Imaginary Part
-g
Nested+Cascade Allpass
50,0.5
20,0.3
2k
Synthetic Reverb
+
30,0.7
a0
+
AP0
g
AP1
LPF
0
0.5
1
+
a1
0.5
a2
0.5
0
0.5
Real Part
AP2
s15-gardnerverb.pd
2013-03-04 - 15/17
s16-reverb.pd
2013-03-04 - 16/17
Filters:
Summary
Delays
Reverb
2013-03-04 - 17/17