Project 1 - Part 2

<--Part 1 | Overview | Part 3-->

Set up the experiment so that you can specify the minimum distance of the observer from the source trajectory, and
repeat Part 1. Produce a set of results as in Part 1 for the listener at some distance away from the source trajectory.

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: 5m
Sound generated by source: 440Hz tone

Figure 2

Perceived frequency at the begining: 474.4004 Hz
Perceived frequency at the end: 410.7301 Hz
Perceived Frequency at the closest point: 440 Hz

Sound Clip 1
Sound Clip 2

Conclusion

I was able to execute the problem and get to correct results on the plots. However, I was unable to make the wave clip
sound good. The SoundClip1 shifts pitch correctly, but there are artifacts as the pitch changes. Unfortunately this is
very distracting from the sound. SoundClip2 used the commented out section in the MatLab code. I was trying to build
the audio clip one period at a time. This method should have worked, but for some reason the pitch does not shift properly.