The rain sound in The Taker pretty much functions as an ambient sound, providing some sort of atmosphere. This sound is dynamically changed based on what room you’re in in the game. Behind the scenes, there are areas with specified volumes that set a variable to the desired volume while the player is standing in them. This variable is then used to set the volume of the rain sounds with lerp, a function in Construct 2 that linearly interpolates values. That just means that changes in volume are gradual, which makes them sound a lot better.
lerp(Audio.Volume("fx_Rain"), fx_rainShouldBe, 0.05)
Fun fact: this rain sound is the third variation of the same sound we’ve used.