Binaural simulation for spatial positioning
Human Head simulates the positioning of a sound source in 2D space (altitude is not simulated as no HRTFs are used) in relation to the approximate parameters of an average human head. Head values can be adjusted to exaggerate or reduce the effect of head filtering, ear separation and distance delay/doppler.
There is some tearing if the sound source is moved around too quickly relative to the doppler factor, but it works very well for panning musical instruments around the listener's head.
I recommend adding a little bit of reverb to the output as it hugely helps with the perceived sound location.
Added a rotation/distance control to make it easy to rotate a sound in a circle around the listener's head via a simple slider. This can also be automated in your DAW.
Added a binaural/stereo button to switch binaural processing on or off.
Fixed a filter problem when the z position was zero.
1m from the listener is now correct unity gain.
Added front-to-back notch filtering to simulate a minor pinna effect.