ThreeDeeJay / HRIR-Batch-Converters

Scripts to convert HRTF files to different formats
13 stars 0 forks source link
3d-audio def dsoal hesuvi hrir hrtf ircam kemar mhr openal openal-soft sadie sofa spatial-audio surround-sound virtual-surround virtualization wav x3daudio-hrtf

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.

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