17
LPC-analysis-VOSIM- resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Embed Size (px)

Citation preview

Page 1: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

LPC-analysis-VOSIM-resynthesis

Combined class

December 18 th 2012

Johan & Peter

Institute of Sonology

Royal Conservatory, The Hague

Page 2: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

AM model

F A(t)

A(t)t

F

t

s(t) t

constant

Page 3: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

FM model

F(t) A

A(t)t

F

t

s(t) t

constant

Page 4: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

FM & AM combined:Instantaneous Frequency (IF)-model

F(t) A(t)

A(t)t

F(t)

t

s(t) t

Page 5: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Model: one “phasor” or sine wave with amplitude and frequency varying over time.

• One sine wave only, no other frequency components!?

• But with FM we can create complex waveforms!

• Rapid amplitude changes will deform the sine wave too

and also create a more complex waveform…. So:

• The frequency width or content depends on the

speed of variation that we allow for the control.

• Another key concept is:

To what degree is a description “band limited”

Page 6: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Fourier model Amplitude only[bands with constant frequency]

Fre

quen

cy

time

Sweep

A

A

A

Page 7: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Example: exponential sweep through octave bands

11 kHz .. > 22 kHz

.

5,5 kHz .. 11 kHz

2750 Hz .. 5,5 kHz

1375 Hz .. 2750 Hz

688 Hz .. 1375 Hz

344 Hz .. 688 Hz

172 Hz .. 344 Hz

86 Hz .. 172 Hz

43 Hz .. 86 Hz

< 43 Hz

Page 8: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Model: one “phasor” or sine wave with amplitude and frequency varying over time.

• The frequency width or content depends on the

speed of variation that we allow for the control.

• The frequency width or frequency content controls the

speed of variation that of the A(t) and F(t)

signals.

• The key concept is:

To what degree is a description “band limited”?

• Other useful insight:

Phase change per time step is frequency.

Page 9: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Phase Vocoder! [still bands with constant frequency]

Fourier model, +phase change (=freq.) info F

requ

ency

time

Sweep

A

F

A

F

A

F

Page 10: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Options:• FFT (narrow band):

-Many bands closely spaced,

-Reduced frequency and amplitude variation.

-Slow update [frame-by-frame] of A(t) and F(t) info.

-Take-over points produce ripples.

• Wide bands (today):

-A(t) and F(t) vary over larger ranges.

-faster variations and more continuous.

• One band only (Can you implement this? Yes you can!):

-Instant A(t) and F(t) update per sample.

Page 11: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Waveform plus narrow band spectrum

Time (s)0 2.05674

-0.3245

0.4945

0

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Time (s)0 2.05674

0

5000

0 0.25 0.5 0.75 1 1.25 1.5 1.75 20

1000

2000

3000

4000

5000

Page 12: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Waveform plus narrow band spectrum

Time (s)0 2.97215

0

5000

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.750

1000

2000

3000

4000

5000

Time (s)0 2.97215

-0.5

0.5

0

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75

Page 13: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Time (s)0 2.05674

0

5000

0

1000

2000

3000

4000

5000

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Waveform plus wide band spectrum

Time (s)0 2.05674

-0.3245

0.4945

0

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Page 14: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Time (s)0 2.05674

0

1000

2000

3000

Time (s)0 2.05674

0

1000

2000

3000

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Formant tracks below 3 kHz

Time (s)0 2.05674

0

0.5

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Time (s)0 2.05674

0

0.5

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Time (s)0 2.05674

0

0.2

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2

Page 15: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

Time (s)0 2.05673

0

5000

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 20

1000

2000

3000

4000

5000

What is truly there after re-synthesis

Time (s)0 2.05673

-0.5

0.5

0

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

Page 16: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

LPC is an (inverse) filter design method.

• It is mathematical procedure based on matrix calculus / linear algebra.

• It is not one method but a group of methods.• It designs an “inverse” filter that could optimally

remove the spectrum energy that exist in a certain signal.

• It does this by searching the best band stop filters to remove the energy in a resonance.

• If you know the best setting to remove energy, than you know the frequencies and bandwidths of the resonance frequencies too.

Page 17: LPC-analysis-VOSIM-resynthesis Combined class December 18 th 2012 Johan & Peter Institute of Sonology Royal Conservatory, The Hague

LPC is an (inverse) filter design method.

• Input is typically a signal that is spectrally shaped by band filtering.

• Next, the filter order (div 2) controls the number of anti-resonances that are modeled.

• The result of the design procedure is a so-called error signal or residue which indicates how successful the process was.

• Successive removal of resonances will result in lower energy error signal that spectrally is maximally flat or white.

• This error signal or residue may still be periodic and thus have a harmonic structure.