hrtfmove2 Signal Modifiers:Panning and Spatialization hrtfmove2 hrtfmove2 Generates dynamic 3d binaural audio for headphones using a Woodworth based spherical head model with improved low frequency phase accuracy. Description This opcode takes a source signal and spatialises it in the 3 dimensional space around a listener using head related transfer function (HRTF) based filters. Syntax aleft, aright hrtfmove2 asrc, kAz, kElev, ifilel, ifiler [,ioverlap, iradius, isr] Initialization ifilel -- left HRTF spectral data file ifiler -- right HRTF spectral data file Spectral datafiles (based on the MIT HRTF database) are available in 3 different sampling rates: 44.1, 48 and 96 khz and are labelled accordingly. Input and processing sr should match datafile sr. Files should be in the current directory or the SADIR (see Environment Variables). ioverlap -- optional, number of overlaps for STFT processing (default 4). See STFT section of manual. iradius -- optional, head radius used for phase spectra calculation in centimeters (default 9.0) isr - optional, default 44.1kHz, legal values: 44100, 48000 and 96000. Performance asrc -- Input/source signal. kAz -- azimuth value in degrees. Positive values represent position on the right, negative values are positions on the left. kElev -- elevation value in degrees. Positive values represent position above horizontal, negative values are positions below horizontal (min -40). Artifact-free user-defined trajectories are made possible using an interpolation algorithm based on spectral magnitude interpolation and a derived phase spectrum based on the Woodworth spherical head model. Accuracy is increased for the data set provided by extracting and applying a frequency dependent scaling factor to the phase spectra, leading to a more precise low frequency interaural time difference. Users can control head radius for the phase derivation, allowing a crude level of individualisation. The dynamic source version of the opcode uses a Short Time Fourier Transform algorithm to avoid artefacts caused by derived phase spectra changes. STFT processing means this opcode is more computationally intensive than hrtfmove using phase truncation, but phase is constantly updated by hrtfmove2. Examples Here is an example of the hrtfmove2 opcode. It uses the file hrtfmove2.csd. Example of the htrfmove2 opcode. See Also hrtfmove, hrtfstat, hrtfer. Credits Author: Brian Carty Maynooth 2008