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

Distance variation function filter coefficient data [1]. More...

#include <stdio.h>
#include <math.h>

Go to the source code of this file.

Functions

void calcDVFCoeffs (float alpha, float rho, float fs, float *b, float *a)
 Calculate the Distance Variation Function (DVF) filter coefficients, as described in [1].
 
void interpDVFShelfParams (float theta, float rho, float *iG0, float *iGInf, float *iFc)
 Calculate the shelving filter parameters for the Distance Variation Function filter from the source (ipsilateral) azimuth and distance.
 
void dvfShelfCoeffs (float g0, float gInf, float fc, float fs, float *b0, float *b1, float *a1)
 Calculate the DVF filter coefficients from shelving filter parameters.
 
void calcDVFShelfParams (int i, float rho, float *g0, float *gInf, float *fc)
 Calculate the high shelf gains and cutoff parameters, given a azimuth index i and distance rho.
 
void doaToIpsiInteraural (float azimuth, float elevation, float *alphaLR, float *betaLR)
 Convert a frontal azimuth/elevation to a modified Interaural-Polar coordinate.
 

Detailed Description

Distance variation function filter coefficient data [1].

See also
[1] S. Spagnol, E. Tavazzi, and F. Avanzini, “Distance rendering and perception of nearby virtual sound sources with a near-field filter model,” Applied Acoustics, vol. 115, pp. 61–73, Jan. 2017, doi: 10.1016/j.apacoust.2016.08.015.
Author
Michael McCrea
Date
20.02.2021
License
ISC

Definition in file saf_utility_dvf.h.