Skip to content

twoz/hrtf-panner-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HRTF Panner

Binaural panner using Head-Related Transfer Functions to convert mono audio source to 3D stereo.

Usage:

var hrtfContainer = new HRTFContainer();
// load Head-Related Impulse Response from the file
hrtfContainer.loadHrir("hrir/kemar.bin");
// create a new panner, source is automatically connected
var panner = new HRTFPanner(audioContext, sourceNode, hrtfContainer);
// connect the panner to the destination node
panner.connect(audioContext.destination);

// call this each time the relative position between the observer and listener changes
panner.update(azimuth, elevation);

About

Binaural panner using HRTF that can be used like a Web Audio node.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published