23
Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Embed Size (px)

Citation preview

Page 1: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Analysis of plucked sound signals using the Prony methodYe Lu2011-12-15

Page 2: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Introduction

Physical Modelling ----Digital Waveguide Synthesis ----Formant Synthesis ----Finite element Methods

Plucked string instruments ----Karplus-Strong Algorithm

Page 3: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Prony Method

developed by Gaspard Riche de Prony in 1795

extracts valuable information from a uniformly sampled signal and builds a series of damped complex exponentials or sinusoids

Page 4: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Prony Method

Page 5: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Fourier Series vs Prony Analysis

Non-parametric -- Parametric

undamped complex exponentials -- damped complex exponentials

amplitude, phase and frequency -- amplitude, phase, frequency and damping coefficients

Page 6: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Karplus-Strong Algorithm

[1] Karplus,K., and A. Strong. 1983. "Digital Synthesis of Plucked-String and Drum Timbres." Computer Music Journal 7(2) : 43-55.

[2] Jaff, D., and J. Smith. 1983. "Extensions of the Karplus-Strong Plucked-String Algorithm." Computer Music Journal 7(2): 56-69

Page 7: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Implementation in Matlab x=(2*rand(Time,1)-1); for i=N+1:Time x(i)=0; end for i=1:N y(i)=x(i); end y(N+1)=x(1); for i=N+2:Time y(i)=x(i)+0.5*(y(i-N)+y(i-N-1)); end

Page 8: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Frequency Response

Page 9: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Modifications for the sound

Decay Shortening

Vibrato

Glissandi

Page 10: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Mathematical formulations

http://www.engr.uconn.edu/~sas03013/docs/PronyAnalysis.pdf

Page 11: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Mathematical formulations

Page 12: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Three Steps

1. Solve linear prediction model, which is constructed by the observed data set

Page 13: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Three steps

2. Find Roots of charactreristic polynomial formed from the linear prediction coefficients

Page 14: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Three steps

3. Solve the original set of linear equations to yield the estimates of the exponential amplitude and sinusoidal phase

Page 15: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Implementation in Matlab

y=zeros(1,N);for i=1:N y(i)=x(800*i);endd=zeros(1,N/2);for i=1:N/2 d(i)=y(i+N/2);endD=zeros(N/2,N/2);for i=1:N/2 for j=N/2:-1:1 D(i,-j+N/2+1)=y(i+j-1); endend

a=pinv(D)*d'; muhat=roots([1,-a']);U=zeros(N,N/2);for i=1:N for j=1:N/2 U(i,j)=muhat(j,1)^(i-1); endendC=pinv(U)*y';

Page 16: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

F3+F4+F5

Page 17: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

F1

Page 18: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

F2

Page 19: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Using “prony” command in Matlab

Page 20: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Problems to be aware

p less than N/2

Noise impacts the accuracy of the Prony pole estimation

Noise can cause the damping factors to be too large

Page 21: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Conclusion

Prony method extracts valuable information from a uniformly sampled signal and builds a series of damped complex exponentials or sinusoids

Provide information of amplitude, phase, frequency and damping coefficients

Very sensitive to the noise, and behave badly when noise presents

Page 22: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

References

[1] Karplus,K., and A. Strong. 1983. "Digital Synthesis of Plucked-String and Drum Timbres." Computer Music Journal 7(2) : 43-55.

[2] Jaff, D., and J. Smith. 1983. "Extensions of the Karplus-Strong Plucked-String Algorithm." Computer Music Journal 7(2): 56-69

[3]http://www.engr.uconn.edu/~sas03013/docs/PronyAnalysis.pdf

[4] Kay and Maple, 1981, “Spectrum Analysis” Proceedings of the IEEE VOL, 69, No. 11: 1404-1406

Page 23: Analysis of plucked sound signals using the Prony method Ye Lu 2011-12-15

Thank you!