Commit fc3a78a0 authored by emerit's avatar emerit
Browse files

update main matlab script

parent 05a93d13
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -55,12 +55,12 @@ addpath(genpath('../td_object_renderer/modeling_tool/'));
generateCustomBinaryFile = false;
normalize = true; % put a true to normalize input HRTF file. Diffuse field spectrum will be equal to one at 1 khz. Shall not be used with BRIR
makeBE = true; % put at true to generate BE rom table and at false to support more type of sofa file
performDiffuseFieldEq = true; % at true perform diffuse field equalization during param bin taps computation. Should not by used when HRIR are alredy diffuse field equalized
performDiffuseFieldEq = false; % at true perform diffuse field equalization during param bin taps computation. Should not by used when HRIR are alredy diffuse field equalized
writeRomFileOutput = true & ~generateCustomBinaryFile; %% generation of rom files if true
writeBinaryOutput = true; %% generation of binary files if true. Always true for TD renderer
writeEachRendererBinaryOutput = false; %% generation of binary split files each containing binary data for individual renderer 
hrir_gain = 10^(-3.0/20)
brir_gain = 10^(6.5/20)
hrir_gain = 10^(-3.0/20);
brir_gain = 10^(6.5/20);
%% Set ivas root path
ivas_path = ['..' filesep '..' filesep];

@@ -89,11 +89,14 @@ if generateCustomBinaryFile
    %hrir_file_name = 'RIEC_hrir_subject_001.sofa'; % fail for TD renderer
   % output_bin_name = 'ivas_binaural_custom_no_optim';
    %brir_file_name = 'IIS_BRIR_officialMPEG_Combined.sofa'  
    hrir_gain = 1;
	hrir_gain = 10^(-3.0/20);
	brir_gain = 10^(0/20);
else 
    hrir_file_name = 'HRIR_128_Meth5_IRC_53_Q10_symL_Itrp1_48000.sofa';
    output_bin_name = 'ivas_binaural';
    brir_file_name = 'IIS_BRIR_officialMPEG_Combined.sofa';
	hrir_gain = 10^(-3.0/20);
	brir_gain = 10^(6.5/20);
end
hrir_path = fullfile ('.','HRIRs_sofa');
brir_path = fullfile ('.','BRIRs_sofa');