Loading scripts/binauralRenderer_interface/generate_ivas_binauralizer_tables_from_sofa.m +16 −5 Original line number Diff line number Diff line Loading @@ -47,15 +47,21 @@ addpath(genpath('../td_object_renderer/modeling_tool/')); %% Set arguments writeRomFileOutput = true; %% generation of rom files if true writeBinaryOutput = true; %% generation of binary files if true. Always true for TD renderer writeEachRendererBinaryOutput = true; %% generation of binary split files each containing binary data for individual renderer writeEachRendererBinaryOutput = false; %% generation of binary split files each containing binary data for individual renderer %% Set ivas root path ivas_path = ['..' filesep '..' filesep]; generateCustomBinaryFile = false; %% Set input files %hrir_file_name = 'D1_48K_24bit_256tap_FIR_SOFA.sofa'; %hrir_file_name = 'HRIR_128_Meth5_IRC_51_Q10_symL_Itrp1_48000.sofa'; if generateCustomBinaryFile hrir_file_name = 'HRIR_128_Meth5_IRC_51_Q10_symL_Itrp1_48000.sofa'; output_bin_name = 'ivas_binaural_51_brir-lc'; else hrir_file_name = 'HRIR_128_Meth5_IRC_53_Q10_symL_Itrp1_48000.sofa'; output_bin_name = 'ivas_binaural'; end brir_file_name = 'IIS_BRIR_officialMPEG_Combined.sofa'; hrir_path = fullfile ('.','HRIRs_sofa'); brir_path = fullfile ('.','BRIRs_sofa'); Loading @@ -63,7 +69,6 @@ brir_path = fullfile ('.','BRIRs_sofa'); rom_path = [ivas_path 'lib_rend']; binary_path = fullfile ('.','binaural_renderers_hrtf_data'); binary_name = [erase(hrir_file_name,'.sofa') '+' erase(brir_file_name, '.sofa') ]; output_bin_name = 'ivas_binaural'; if ~(exist(binary_path, 'dir')) mkdir(binary_path); end Loading Loading @@ -100,6 +105,12 @@ if writeBinaryOutput == true ]; end if generateCustomBinaryFile command = [command ... ' -brir_optim_config_path' ... ' brir_low_complexity_optim.cfg ' ... ] end command = [command ... ' -compute_reverb_rom ' ... erase(hrir_file,'.sofa') '.mat ' ... Loading Loading
scripts/binauralRenderer_interface/generate_ivas_binauralizer_tables_from_sofa.m +16 −5 Original line number Diff line number Diff line Loading @@ -47,15 +47,21 @@ addpath(genpath('../td_object_renderer/modeling_tool/')); %% Set arguments writeRomFileOutput = true; %% generation of rom files if true writeBinaryOutput = true; %% generation of binary files if true. Always true for TD renderer writeEachRendererBinaryOutput = true; %% generation of binary split files each containing binary data for individual renderer writeEachRendererBinaryOutput = false; %% generation of binary split files each containing binary data for individual renderer %% Set ivas root path ivas_path = ['..' filesep '..' filesep]; generateCustomBinaryFile = false; %% Set input files %hrir_file_name = 'D1_48K_24bit_256tap_FIR_SOFA.sofa'; %hrir_file_name = 'HRIR_128_Meth5_IRC_51_Q10_symL_Itrp1_48000.sofa'; if generateCustomBinaryFile hrir_file_name = 'HRIR_128_Meth5_IRC_51_Q10_symL_Itrp1_48000.sofa'; output_bin_name = 'ivas_binaural_51_brir-lc'; else hrir_file_name = 'HRIR_128_Meth5_IRC_53_Q10_symL_Itrp1_48000.sofa'; output_bin_name = 'ivas_binaural'; end brir_file_name = 'IIS_BRIR_officialMPEG_Combined.sofa'; hrir_path = fullfile ('.','HRIRs_sofa'); brir_path = fullfile ('.','BRIRs_sofa'); Loading @@ -63,7 +69,6 @@ brir_path = fullfile ('.','BRIRs_sofa'); rom_path = [ivas_path 'lib_rend']; binary_path = fullfile ('.','binaural_renderers_hrtf_data'); binary_name = [erase(hrir_file_name,'.sofa') '+' erase(brir_file_name, '.sofa') ]; output_bin_name = 'ivas_binaural'; if ~(exist(binary_path, 'dir')) mkdir(binary_path); end Loading Loading @@ -100,6 +105,12 @@ if writeBinaryOutput == true ]; end if generateCustomBinaryFile command = [command ... ' -brir_optim_config_path' ... ' brir_low_complexity_optim.cfg ' ... ] end command = [command ... ' -compute_reverb_rom ' ... erase(hrir_file,'.sofa') '.mat ' ... Loading