ITADSPThirdOctaveFilterbankTest.m 1.51 KB
Newer Older
1
2
3
4
5
%% ITADSPThirdOctaveFilterbankTest evaluation Matlab script

% Loads the results of filterbanks from the test ITADSPThirdOctaveFilterbankTest
% Requires ITA Toolbox, see http://ita-toolbox.org

6
iir_ident = ita_read( 'ITADSPThirdOctaveFilterbankTest_IIR_Identity.wav' );
7
%iir_ident.signalType = 'energy';
8
9
10
11
12
13
14
iir_ident.channelNames = { 'Identity' };
iir_ident.pf

test_iir_ident = ita_normalize_dat( ita_merge( ita_demosound, ita_convolve( ita_demosound, iir_ident ) ), 'allchannels', true );
test_iir_ident2 = ita_normalize_spk( ita_merge( ita_demosound, ita_convolve( ita_demosound, iir_ident ) ), 'allchannels', true );
test_iir_ident2.play

15
16
17
18
19

iir_zeros = ita_read( 'ITADSPThirdOctaveFilterbankTest_IIR_Zeros.wav' );
iir_zeros.channelNames = { 'Zeros' };
iir_zeros.pf

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
fdatool

SOS =

    1.0000         0   -1.0000    1.0000    0.2606    0.8247
    1.0000         0   -1.0000    1.0000   -0.8148    0.8398
    1.0000         0   -1.0000    1.0000   -0.5621    0.6067
    1.0000         0   -1.0000    1.0000    0.0527    0.5859
    1.0000         0   -1.0000    1.0000   -0.2483    0.5095

G

G =

    0.2843
    0.2843
    0.2544
    0.2544
    0.2452
    1.0000



43
44
45
46
47
48
49
50
ITADSPThirdOctaveFilterbankTest_IIR_Zeros = ita_read( 'ITADSPThirdOctaveFilterbankTest_IIR_Zeros.wav' );
ITADSPThirdOctaveFilterbankTest_IIR_SomeBands = ita_read( 'ITADSPThirdOctaveFilterbankTest_IIR_SomeBands.wav' );


ITADSPThirdOctaveFilterbankTest_IIR_Zeros.channelNames = { 'Zero' };
ITADSPThirdOctaveFilterbankTest_IIR_Zeros.pf

ITADSPThirdOctaveFilterbankTest_IIR_SomeBands.pf