CTP431- Music and Audio Computing Audio Signal Processing (Part #2)
Graduate School of Culture Technology KAIST Juhan Nam
1
CTP431- Music and Audio Computing Audio Signal Processing (Part #2) - - PowerPoint PPT Presentation
CTP431- Music and Audio Computing Audio Signal Processing (Part #2) Graduate School of Culture Technology KAIST Juhan Nam 1 Types of Audio Signal Processing Filter/EQ Compressor Delay-based Effects Delay, reverberation Spatial
1
2
3
4
H(z) = (1−cosΘ 2 ) 1+ 2z−1 +1z−2 (1+α)− 2cosΘz−1 +(1−α)z−2 α = sinΘ 2Q
10
2
10
3
10
4
−30 −20 −10 10 20 30 f=400 f=1000 f=3000 f=8000 Lowpass Filters freqeuncy(log10) Gain(dB) 10
2
10
3
10
4
−30 −20 −10 10 20 30 Q =0.5 Q =1 Q =2 Q =4 Lowpass Filters freqeuncy(log10) Gain(dB)
5
10
2
10
3
10
4
−30 −20 −10 10 20 30 f=400 f=1000 f=3000 f=8000 Highpass Filters freqeuncy(log10) Gain(dB) 10
2
10
3
10
4
−30 −20 −10 10 20 30 Q =0.5 Q =1 Q =2 Q =4 Highpass Filters freqeuncy(log10) Gain(dB)
6
10
2
10
3
10
4
−30 −20 −10 10 20 30 f=400 f=1000 f=3000 f=8000 Bandpass Filters freqeuncy(log10) Gain(dB) 10
2
10
3
10
4
−30 −20 −10 10 20 30 Q =0.5 Q =1 Q =2 Q =4 Bandpass Filters freqeuncy(log10) Gain(dB)
7
10
2
10
3
10
4
−30 −20 −10 10 20 30 f=400 f=1000 f=3000 f=8000 Notch Filters freqeuncy(log10) Gain(dB) 10
2
10
3
10
4
−30 −20 −10 10 20 30 Q =0.5 Q =1 Q =2 Q =4 Notch Filters freqeuncy(log10) Gain(dB)
10
2
10
3
10
4
−30 −20 −10 10 20 30 AdB=−12 AdB=−6 AdB=0 AdB=6 AdB=12 EQ freqeuncy(log10) Gain(dB) 10
2
10
3
10
4
−30 −20 −10 10 20 30 AdB=−12 AdB=−6 AdB=0 AdB=6 AdB=12 EQ freqeuncy(log10) Gain(dB)
8
Q=1 Q=4
9
10
Gain Curve Envelop Detector Input Output X
11
Full-wave rectification Input Leaky Integrator envelope
−1(attack _time*fs))( x(n) − y(n −1))
−1(release_time*fs))( x(n) − y(n −1))
12
Input (dB) Output (dB) Threshold
No compression
Gain Curve
1:2 1:4 1:10
Ratio Soft Knee Hard Knee
0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x 10
4
−1 −0.5 0.5 1 time, samples 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x 10
4
−1 −0.5 0.5 1 time, samples
Before compression After compression
13
14
x(n)
feedback
y(n)
Dry
Wet
Delay Line
15
LFOs
x(n) y(n)
Dry
Wet
Delay Line
16
x(n)
LFOs Static tap Variable tap
y(n)
Wet Dry
Delay Line
17
Sound Source Listener Direct sound Reflected sound
18
10 20 30 40 50 60 70 80 90 100
0.2 0.4 0.6 0.8 1 CCRMA Lobby Impulse Response time - milliseconds response amplitude direct path early reflections late-field reverberation
19
20
Z-M
x(n)
_
y(n) AllPass filter / Comb filter (when one tap is absent)
such that their greatest common factors is small (e.g. prime numbers)
unitary (orthonormal)
x(n) Feedback Delay Networks Z-M1 Z-M2 Z-M3
a11 a12 a13 a11 a12 a13 a11 a12 a13 y(n)
multiple AP or FFCF units
21
s(t)
LTI system
r(t)
test sequence measured response
n(t) h(t)
measurement noise
22
500 1000 1500
0.5 sine sweep, s(t) amplitude frequency - kHz sine sweep spectrogram 200 400 600 800 1000 5 10 500 1000 1500 2000
0.5 1 sine sweep response, r(t) time - milliseconds amplitude time - milliseconds frequency - kHz sine sweep response spectrogram 500 1000 1500 2000 5 10 100 200 300 400 500 600 700 800 900 1000
0.02 0.04 0.06 0.08 measured impulse response time - milliseconds amplitude
( J. Abel )
23
R L ITD IID
24
𝐼"(𝜕, ∅, 𝜄) 𝐼)(𝜕, ∅, 𝜄)
R L
25
26
27
Input Left output Right output ℎ"(𝑢, ∅, 𝜄) ℎ)(𝑢, ∅, 𝜄)
28
29
[The DaFX book]
30
31
−5 −4 −3 −2 −1 1 2 3 4 5 0.5 1 1.5 Windowed Sinc Sample Time −5 −4 −3 −2 −1 1 2 3 4 5 0.5 1 1.5 Linear Sample Time −5 −4 −3 −2 −1 1 2 3 4 5 0.5 1 1.5 3rd−order B−spline Sample Time −5 −4 −3 −2 −1 1 2 3 4 5 0.5 1 1.5 3rd−order Lagrange Sample Time
h(t) = w(t)sinc(t) = w(t)sin(πt) πt
k=−(L−1) k=L
Delayed by d ( 0 < d < 1)