see readme in the folder. Convert dense set of HRIRs into HOA to binaural filters in time domain or in CLDFB domain.
Required by generate_crend_ivas_tables, parim_bin and fastconv.
-/scripts/binauralRenderer_interface/param_bin
see readme in the folder. Generate part of rom file ivas_rom_binauralRenderer.c and/or parametric renderer binary file. To generate complete ivas_rom_binauralRenderer.c rom file see example in generate_ivas_binauralizer_tables_from_sofa.m
-/scripts/binauralRenderer_interface/fastconv
see readme in the folder. Generate part of rom file ivas_rom_binauralRenderer.c and/or fastconv renderer binary file. To generate complete ivas_rom_binauralRenderer.c rom file see example in generate_ivas_binauralizer_tables_from_sofa.m . Warning the computed values for late reverberation depend on matlab OS version used. IVAS tests still BE.
-/scripts/td_object_renderer
see readme in the folder. Generate part of rom files ivas_rom_TdBinauralRenderer.c ivas_rom_TdBinauralRenderer.c and TD renderer binary file. Warning the computed values depend on matlab OS version used. IVAS tests still BE.
### SOFA files :
- HRIRs sofa files for testing are stored in ./HRIRs_sofa folder
- BRIRs sofa files for testing are stored in ./BRIRs_sofa folder
The current scripts have not been tested with other SOFA files. For other SOFA files some adaptations of the scripts may be required. Current scripts are provided as example.
See /scripts/ThirdPartyLegalNotices for related information.
## Usage
Run the following matlab script : generate_ivas_binauralizer_tables_from_sofa.m
It will generate rom files that can be used to compile IVAS decoder or renderer. By default the result it BE. I will also generate binary files that can be used with -hrtf flag in IVAS decoder or renderer command line. Using IVAS decoder or renderer with default binary files will generate BE output compare to the same command line without -hrtf flag. To test different sofa files input you need to modify the script in the section "%% Set input files". Other sofa files are available in ./HRIRs_sofa folder. Generated files are in folder ./binaural_renderers_hrtf_data.
Generated files :
- ivas_binaural_*kHz.bin : file containing all tables values for all IVAS binaural renderers for one sample rate.
- ivas_binaural_td_*kHz.bin : file containing tables values for IVAS td binaural renderer for one sample rate.
- ivas_binaural_reverb_*kHz.bin : file containing tables values for IVAS td reverberation process for one sample rate.
- ivas_binaural_fastconv_*kHz.bin : file containing tables values for IVAS fastconv binaural renderers. All sample rate files are the same.
- ivas_binaural_parambin_*kHz.bin : file containing tables values for IVAS prametric binaural renderers. All sample rate files are the same.
- ivas_binaural_td_*kHz.bin : file containing tables values for IVAS td binaural renderers for one sample rate.
- ivas_binaural_mixconv_hrir_*kHz.bin : file containing tables values for IVAS mixer conv binaural renderer for HRIR for one sample rate.
- ivas_binaural_mixconv_brir_*kHz.bin : file containing tables values for IVAS mixer conv binaural renderer for BRIR for one sample rate.
Without matlab only binary files for mixer conv renderer BRIR can be generated.
- run for example to use IVAS renderer as a BRIR convolver run successively :