Engine sounds with dynamic audio
Some effects have a dynamic nature and cannot be achieved by simply playing a plain audio file. Imagine a car engine; the sound it makes depends on many factors such as the type of engine and the revolutions per minute it is running at. Since a user can accelerate or hit the brake at any point in time, developers need to play audio in an adaptive manner.
Many games also have a dynamic soundtrack. Shadow of the Colossus (PlayStation 2, 2005) comes to mind when thinking of music that adapts to gameplay. In this game, the player has to defeat a series of giant beasts by climbing on them and striking weak spots. Music would smoothly change to accompany the mood of the moment. We are not talking about changing music tracks when the player reaches a point via script, but blending tracks in and out depending on things such as player performance.
Throughout this recipe, we will show you how to reproduce a car sound as it moves at different speeds. Obviously, we will...