Project 1 - Part 1
Let a sound source produce a single tone at frequency F0. The source is moving on a straight line that passes "through" the observer.
Plot the velocity of the source relative to the observer, the signal envelope, and the apparent frequency of the source as functions
of time. Generate the sound at the position of the observer.
Results
MatLab Code
Velocity of object: 25m/s
Distance Traveled: 100m
Distance infront of observer: 75m
Distance behind observer: 25m
Distance of observer from path: 0m
Sound generated by source: 440Hz tone
Perceived frequency at the begining: 474.4828 Hz
Perceived frequency at the end: 410.1897 Hz
Perceived Frequency at the closest point: 440 Hz
Sound Clip
Conclusions
In the end I was able to get the program working correctly. There was initially an error when the object was as the point
of the observer. When calculating the distance there was a divide by zero. I had to add an if statement to catch this
and insert the correct value.