SAF
|
Public source 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 *hrtfs_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. | |
Public source 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.
Definition in file saf_hrir.c.