The Doppler effect causes the pitch of a sound source to appear to rise or fall due to motion of the source and/or listener relative to each other. You have probably heard the pitch of a horn drop lower as it passes by (e.g., from a moving train). As a pitched sound-source moves toward you, the pitch you hear is raised; as it moves away from you, the pitch is lowered. The Doppler effect has been used to enhance the realism of simulated moving sound sources for compositional purposes [#!Chowning71!#], and it is an important component of the ``Leslie effect'' (described in §).
As derived in elementary physics texts, the Doppler shift is given by
Vector Formulation
Denote the sound-source velocity by where is time. Similarly, let denote the velocity of the listener, if any. The position of source and listener are denoted and , respectively, where is 3D position. We have velocity related to position by
Velocity Projection
The Doppler effect depends only on velocity components along the line connecting the source and listener [#!Pierce!#, p. 453]. We may therefore orthogonally project the source and listener velocities onto the vector pointing from the source to the listener. (See Fig.1.1 for a specific example.)
The orthogonal projection of a vector onto a vector is given by [#!MDFT!#]