% - converts sphere-sampled Head Related Impulse Responses (HRIRs) given in sofa_file to the Spherical Harmonics domain (SHD)
% - converts sphere-sampled Head Related Impulse Responses (HRIRs) given in sofa_file to the Spherical Harmonics domain (SHD) using generate_HOA_HRIRs_MOD_lens.m
% - converts SHD HRIRs to Complex Low Delay Filter Bank (CLDFB) domain
% - writes CLDFB HRIRs to c-code ROM tables.
%
% Processing chain:
%
% HRIRs --> SHD --> CLDFB --> ROM
% HRIRs --> SHD: Using ./generate_HOA_HRIRs_MOD_lens.m
% SHD --> CLDFB: Least squares optimization
% CLDFB --> ROM: Using ../param_bin/writeData3L.m
[thispath,~,~]=fileparts(mfilename('fullpath'));
thispath=[thispath,filesep];
@@ -78,6 +72,7 @@ latency_s = 2.083333333333333e-05; % No added latency from conversion method
max_band=50;% Compute 60 bands, but only use 50 in ROM table
IR_cldfb_rom=permute(IR_cldfb,[3142]);% after permute: [ears(2), bands(60), chans(16), taps(3)]