Commit b23d8e09 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Cleanup, ignoring json files now

parent 1199fb17
*.ini *.ini
*.json
HTML HTML
*.bat *.bat
*.mat *.mat
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
% Loads the results of different filterbank implementations from the test ITADSPThirdOctaveFilterbankTest % Loads the results of different filterbank implementations from the test ITADSPThirdOctaveFilterbankTest
% Requires ITA Toolbox, see http://ita-toolbox.org % Requires ITA Toolbox, see http://ita-toolbox.org
% We use energy/power signal types as the impulse responses will give
% appropriate results of flat spectrum after filtering (a la insertion loss)
%% FIR spline interpolation linear phase %% FIR spline interpolation linear phase
fir_zeros = ita_read( 'ITADSPThirdOctaveFilterbankTest_FIRSplineLinearPhase_Zeros.wav' ); fir_zeros = ita_read( 'ITADSPThirdOctaveFilterbankTest_FIRSplineLinearPhase_Zeros.wav' );
fir_unity = ita_read( 'ITADSPThirdOctaveFilterbankTest_FIRSplineLinearPhase_Identity.wav' ); fir_unity = ita_read( 'ITADSPThirdOctaveFilterbankTest_FIRSplineLinearPhase_Identity.wav' );
...@@ -92,14 +95,14 @@ if 0 ...@@ -92,14 +95,14 @@ if 0
end end
if 0 if 1
cp_dir = ita_merge( fir_dir, iir_burg_dir, iir_bq_dir ); cp_dir = ita_merge( fir_dir, iir_burg_dir, iir_bq_dir );
cp_dir.signalType = 'energy'; cp_dir.signalType = 'energy';
cp_dir_r = ita_spk2frequencybands( cp_dir ); cp_dir_r = ita_spk2frequencybands( cp_dir );
json_dir_r = cp_dir_r.ch(1); json_dir_r = cp_dir_r.ch(1);
json_dir_r.freqData = json_dir.freqData; json_dir_r.freqData = json_dir.freqData;
cp_dir_r = ita_merge( json_dir_r, cp_dir_r ); cp_dir_r = ita_merge( json_dir_r, cp_dir_r );
cp_dir_r.channelNames = cn cp_dir_r.channelNames = cn;
cp_dir_r.pf cp_dir_r.pf
title( 'Directivity spectrum' ) title( 'Directivity spectrum' )
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment