Respuesta :
when an object is moving the waves in front of it (sound, light, whatever) get compressed and the waves behind it are stretched apart. so in a race cars case, the compressed waves make a higher pitched noise and vice versa
The pitch is higher as it approaches and then becomes lower the moment it passes.