Audio analysis
20
40
60
80
100
120
20
40
60
80
100
120
20
40
60
80
100
120
20
10
0
10
2
10
2
10
0
10
0
10
–2
10
–2
10
2
10
0
10
–2
40
60
80
100
120
Frequency
Frequency
Frequency
Frequency
Amplitude
Amplitude
Amplitude
Amplitude
Order=48
Order=36
Order=24
Order=12
Figure 6.9
LSP locations and LPC power spectrum of a violin open A string plotted for various
orders of analysis, against a frequency index from 1 to 128.
vector named violin, we can perform a Pth-order LPC analysis, convert to LSPs and
plot the result.
P=16;
Ws=256;
%window size=256 samples
vseg=violin(1:Ws).*hamming(Ws);
a=lpc(vseg, P);
w=lpc_lsp(a);
lpcsp(a, w);
There should be a very obvious spectral peak located at 440 Hz, with several harmonics
visible. Figure 6.9 shows a plot of this analysis, ranging from 12th to 48th order, revealing
greater and greater levels of spectral detail as the order increases. In this case the analysis
shows a 4096-sample section. In each case there is a reasonably good correspondence
of the LSP positions to spectral peaks – in particular the location of narrow line pairs
around many major peaks. As more detail is revealed through increased order analysis,
the harmonic structure of the played note becomes clearer, although a triple (rather than
pair) at the fundamental of the 48th-order plot probably indicates that the analysis order
is greater than the note complexity warrants.
6.3. Analysis of other signals
153
10
20
30
40
50
60
70
80
90
0
1000
2000
3000
4000
5000
6000
7000
8000
Analysis frame
Frequency
Time
Frequency
0.5
1
1.5
2
2.5
0
1000
2000
3000
4000
5000
6000
7000
8000
Do'stlaringiz bilan baham: |