# Binaural Rendering with Measured Room Responses: First-Order Ambisonic Microphone vs. Dummy Head
## Appendix B ASDM MATLAB Source Code  
The MATLAB source code of the proposed ASDM method can be found in Listing 1. Please note that you need to install the spherical harmonic transform which can be accessed from [[https://github.com/polarch/Spherical-Harmonic-Transform](https://github.com/polarch/Spherical-Harmonic-Transform)]([https://github.com/polarch/Spherical-Harmonic-Transform](https://github.com/polarch/Spherical-Harmonic-Transform)). ```
1%%FirstorderB-formatRIR(ARRAY)
2[x,fs]=audiored(fname);%sortedinW,X,Y,Z-fsisthesamplingfrequency
3
4%ParametersandSettings
5N=3;%Ambonicsorder
6 wrft=2^ceil([log2(size(x,1))];%fftlength
7 Lsmonth_dirtcut=17;
8 win_dirtcut=hamm(Lsmonth_dirtcut);
9 Lsmonth_specdecay=4096;%smoothingforfs=44.1 kHz
10 win_specdecay=hamm



## References

* [PERSON] (1992) [PERSON] Fundamentals of binaural technology. _Appl. Acoust._**1992**, _36_, 171-218. [CrossRef]
* [PERSON] and [PERSON] (1959) [PERSON]; [PERSON] Binaural listening and interaural noise cross correlation. _J. Acoust. Soc. Am._**1959**, _31_, 1250-1252. [CrossRef]
* [PERSON] and [PERSON] (1998) [PERSON]; [PERSON]; [PERSON] Relations among interaural cross-correlation coefficient (IACCE), lateral fraction (LFE), and apparent source width (ASW) in concert halls. _J. Acoust. Soc. Am._**1998**, _104_, 255-265. [CrossRef] [PubMed]
* [PERSON] (2014) [PERSON] Binaural Resynthesis of Acoustical Environments-Technology and Perceptual Evaluation. Ph.D. Thesis, TU Berlin, Berlin, Germany, 2014. * [PERSON] (2011) [PERSON] Personalized Headphone Virtualization.U.S. Patent 7,936,887, 3 May 2011. * [PERSON] and [PERSON] (2008) [PERSON]; [PERSON] [PERSON]; [PERSON] [PERSON] Headphone Surround Monitoring for Studios. In Proceedings of the Convention of the Audio Engineering Society, London, UK, 9 April 2008; pp. 1-7. * [PERSON] and [PERSON] (2014) [PERSON] [PERSON]; [PERSON]; [PERSON] [PERSON] Measurement and Analysis of a Spatially Sampled Binaural Room Impulse Response Dataset. In Proceedings of the 21 st International Congress on Sound and Vibration, Beijing, China, 13-17 July 2014; pp. 1-8. * [PERSON] et al. (2017) [PERSON]; [PERSON]; [PERSON]; [PERSON] [PERSON]; [PERSON]; [PERSON] Implementation and evaluation of a low-cost head-tracker for binaural synthesis. In Proceedings of the Convention of the Audio Engineering Society, Berlin, 20-23 May 2017. * [PERSON] et al. (2001) [PERSON]; [PERSON]; [PERSON][PERSON] Direct Comparison of the Impact of Head Tracking, Reverberation, and Individualized Head-Related Transfer Functions on the Spatial Perception of a Virtual Speech Source. _J. Audio Eng. Soc._**2001**, _49_, 904-916. [PubMed]
* [PERSON] and [PERSON] (2006) [PERSON]; [PERSON]; [PERSON] Effects of headtracker latency in virtual audio displays. _J. Audio Eng. Soc._**2006**, _54_, 32-44. * [PERSON] et al. (2017) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] Influence of head tracking on the externalization of speech stimuli for non-individual binaural synthesis. _J. Acoust. Soc. Am._**2017**, _141_, 2011-2023. [CrossRef] [PubMed]
* [PERSON] et al. (2017) [PERSON] [PERSON]; [PERSON] [PERSON]; [PERSON] [PERSON]; [PERSON]; [PERSON] An Efficient Source-and-Receiver-Directional RIR Measurement Method. In Proceedings of the Fortschritte der Akustik-DAGA, Kiel, Germany, 6-9 March 2017; pp. 1343-1346. * [PERSON] and [PERSON] (2015) [PERSON]; [PERSON] [PERSON] Perceptual Aspects of Dynamic Binaural Synthesis based on Measured Omnidirectional Room Impulse Responses. In Proceedings of the International Conference on Spatial Audio, Seattle, WA, USA, 26-30 May 2015. * [PERSON] (2010) [PERSON] Binaural Audio Signal Processing Using Interaural Coherence Matching. Ph.D. Thesis, EPFL, Lausanne, Switzerland, 2010. * [PERSON] et al. (2008) [PERSON]; [PERSON]; [PERSON] Minimum BRIR grid resolution for dynamic binaural synthesis. _J. Acoust. Soc. Am._**2008**, _123_, 3498. [CrossRef]
* [PERSON] et al. (2004) [PERSON]; [PERSON]; [PERSON] Motion-tracked binaural sound. _J. Audio Eng. Soc._**2004**, _52_, 1142-1156. * [PERSON] et al.