EEN 502 – Project 2
This project seeks to explore spatial audio with a library of HRTF data provided from: http://sound.media.mit.edu/resources/KEMAR.html
Problem 1 consists of three parts.
The code for all three parts can be found here:
Code for Problem 1
a) A gaussian noise source moving clockwise at 2 revolutions per second, 4 seconds total
Sound for Problem 1, Part A
b) A gaussian noise source moving counter-clockwise at 1 revolution per second, 2 seconds total
Sound for Problem 1, Part B
c) Both sources from part a and b. Part b was extended to four seconds so that they both ran for the same amount of time.
Sound for Problem 1, Part C
Problem 2
In this problem, a three tone signal moves along a line in front of a “listener.” The sound takes into account the doppler effect, distance envelope, and HRTFs for spatialization.
Code for Problem 2
Sound for Problem 2
BONUS
Moving source 3D MATLAB plot.
Sound for Problem 2
Conclusion and Results
Problem one was a success. The code was even able to spatialize audio when provided a musical signal instead of broadband noise. However, problem two has its problems. As heard in the audio sample above, tiny clicks occur in the resulting audio whenever the algorithm switches between HRTF impulses. This is likely due to the fact that our HRTF data are all spaced by five degrees. A simple low pass filter could mitigate the clicks, but a more elegant solution could exist in somehow interpolating between the impulses separated by five degrees. This interpolation could yield impulses with 1 degree of precision, or less. This implementation would reduce the clicking effect and generally provide a more accurate resulting signal.