RealDocs

UAudioComponent::SetPitchMultiplier

function Engine Blueprint Since unknown
#include "Components/AudioComponent.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Sets the component's PitchMultiplier property, applied instantly. A value of 1.0 is unmodified pitch; higher values raise pitch and speed up playback, lower values do the reverse.

Caveats & Gotchas

  • Pitch shifting on most sound sources also changes playback speed since it's implemented as resampling, not a pure pitch-shift effect.
  • Extreme values (near 0 or very large) can produce audible artifacts or effectively silence/distort the sound depending on the platform's audio engine.
  • Takes effect immediately with no interpolation, unlike AdjustVolume().

Signature

void SetPitchMultiplier(float NewPitchMultiplier)

Parameters

Name Type Description Default
NewPitchMultiplier float The new pitch multiplier value to apply immediately.

Return Type

void

Example

Speed up an engine sound with velocity C++
float Pitch = FMath::Clamp(Speed / MaxSpeed, 0.5f, 2.0f);
EngineAudioComponent->SetPitchMultiplier(Pitch);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.