SAF
Loading...
Searching...
No Matches
saf_hrir.h File Reference

Main header for the HRIR/HRTF processing module (SAF_HRIR_MODULE) More...

Go to the source code of this file.

Functions

void estimateITDs (float *hrirs, int N_dirs, int hrir_len, int fs, float *itds_s)
 Estimates the interaural time-differences (ITDs) for each HRIR based on the cross-correlation between the left and right channels, which are first low-pass filtered at 750Hz.
 
void HRIRs2HRTFs_afSTFT (float *hrirs, int N_dirs, int hrir_len, int hopsize, int LDmode, int hybridmode, float_complex *hrtf_fb)
 Passes zero padded HRIRs through the afSTFT filterbank.
 
void HRIRs2HRTFs_qmf (float *hrirs, int N_dirs, int hrir_len, int hopsize, int hybridmode, float_complex *hrtf_fb)
 Passes zero padded HRIRs through the qmf filterbank.
 
void HRIRs2HRTFs (float *hrirs, int N_dirs, int hrir_len, int fftSize, float_complex *hrtfs)
 Converts HRIRs to HRTFs for a given FFT size.
 
void diffuseFieldEqualiseHRTFs (int N_dirs, float *itds_s, float *centreFreq, int N_bands, float *weights, int applyEQ, int applyPhase, float_complex *hrtfs)
 Applies pre-processing to a set of HRTFs, which can either be diffuse-field EQ of an (optionally weighted) average of all HRTFs (CTF), phase simplification based on ITDs, or both.
 
void interpHRTFs (float_complex *hrtfs, float *itds, float *freqVector, float *interp_table, int N_hrtf_dirs, int N_bands, int N_interp_dirs, float_complex *hrtf_interp)
 Interpolates a set of HRTFs based on a specified interpolation table.
 
void binauralDiffuseCoherence (float_complex *hrtfs, float *itds, float *freqVector, int N_hrtf_dirs, int N_bands, float *HRTFcoh)
 Computes the binaural diffuse coherence per frequency for a given HRTF set, as described in [1].
 
void resampleHRIRs (float *hrirs_in, int hrirs_N_dirs, int hrirs_in_len, int hrirs_in_fs, int hrirs_out_fs, int padToNextPow2, float **hrirs_out, int *hrirs_out_len)
 Resamples a set of HRIRs from its original samplerate to a new samplerate.
 

Variables

const float __default_hrirs [836][2][256]
 The default HRIR data for SAF.
 
const float __default_hrir_dirs_deg [836][2]
 The measurement directions used for the default HRIR dataset.
 
const int __default_N_hrir_dirs
 The number of directions/measurements in the default HRIR dataset.
 
const int __default_hrir_len
 The length of the filters, in samples, for the default HRIR dataset.
 
const int __default_hrir_fs
 The samplerate used to measure the default HRIR filters

 

Detailed Description

Main header for the HRIR/HRTF processing module (SAF_HRIR_MODULE)

A collection functions for processing head-related impulse-response (HRIR). Including: estimation of the interaural time differences (ITDs), conversion of HRIRs to HRTFs or filterbank coefficients; diffuse-field equalisation and phase simplication; and HRTF interpolation.

Author
Leo McCormack
Date
12.12.2016
License
ISC

Definition in file saf_hrir.h.