Sound Stretching..

Hey guys. I just created a soundbox for my game. its a little box that plays music. but when i run or walk around the box the sound gets stretched. its really sounds bad. Any advice on how to improve this? The sound it linked to the object in the world… so the sound is coming from the musicbox itself.

yea this may sound bad but it's totally realistic. Its mimicking the same way that a train or a fire truck sounds like a LONG note from a distance and a quick repeating noise up close. It's a genuine natural characteristic of sound and while you can remove it it will actually make the sound less realistic.

@sparkzbarca, but the source in this case is a music box. It is not going to move at the speed of a train. I think it is caused by a high doppler setting on the music box, or the OP's script is moving the player too fast.

well no yea clearly it's his speed causing it. Still though it's still mimicking doppler either way. How youd walk fast enough to notice i've no idea

1 Answer

1

If the audioClip in the Audio Source of the music box is a 3D sound, the sound will be affected by the audiolistener moving speed, this is called the Doppler effect. The pitch will vary depends on how you move around the music box, move towards the box, the pitch becomes higher; move away from the box, the pitch becomes lower.

You can fix it by setting the doppler level ( AudioSource → 3D Sound Settings → Doppler Level ) to 0.

Thank you very much guys... much appreciated..