Possible to link sound pitch to player velocity?

Hey guys, so I’m wondering if there is a way to create a variable of an audio files pitch and connect that to player velocity.

The context is a looping wind sound which I want to increase in pitch as the player runs faster.

Any help is much appreciated!

Welcome! Your post is tagged UE4 so I assume you’re using Sound Cues, and not MetaSounds with UE5.

In your Sound Cue, you can connect your Wave Player to a Continuous Modulator node, then in the sidebar, under pitch modulation, give it a parameter name and configure the other range values. Then whenever your wind speed changes, you’ll call the SetFloatParameter function on your audio component that’s playing the sound cue and translate your velocity into a pitch value. The InName input needs to match the parameter name you entered in the sound cue exactly or it will not work.

Hope that helps!

1 Like

Amazing thanks so much! I’ll give that a go and report back :slight_smile: