Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 2.27 KB

README.md

File metadata and controls

34 lines (27 loc) · 2.27 KB

HRIR Batch Converters

Scripts to convert HRTF/HRIR files into a different format.
Direct download
HRIR database
Binaural audio in a nutshell

Generate DEF

Generates a Definition file (.DEF) used by makemhr.exe v1.20.1 or makehrtf.exe v1.18.2 to generate .MHR files compatible with OpenAL Soft and X3DAudio HRTF, respectively.
To generate a .DEF file, open the respective .bat with a text editor to find the expected file/folder structure and set it up accordingly (Usually the top .WAV/.DAT folder or .SOFA file in the same folder as the script).
Note: These scripts are intended for the listed HRIRs since it generates a template using specific configuration required by each particular HRIR.

DEF to MHR

Converts Definition files (.DEF) into .MHR files compatible with OpenAL Soft or X3DAudio HRTF, depending on the script.

  • For OpenAL Soft, it generates 44100hz, 48000hz and 96000hz .MHR files.
  • For X3DAudio HRTF, it generates 32000hz, 44100hz, 48000hz and a 96000hz .MHR files.

SOFA to MHR

Converts all the .SOFA files in the script folder to OpenAL Soft .MHR files (44100hz, 48000hz and 96000hz)

SOFA to WAV

Converts all the .SOFA files in the script folder to HeSuVi .WAV files files (44100hz and 48000hz) and opens the output/ and hrir/ folders for easy drag and drop installation.

Resample

Generates 44.hkhz WAV file for HeSuVi WAV files, if missing.

Contact

For more updates, troubleshooting or contribution, join the discussion at the Binaural Audio Discord server.

Credits:

kcat - makehrtf/makemhr
Matt Gore, Jaakko Pasanen - SOFA to HeSuVi conversion setup
FFmpeg team - FFmpeg
Christian Hoene - libmysofa
Chris Bagwell - SoX