Garry's Mod Wiki

CSoundPatch:ChangePitch

  CSoundPatch:ChangePitch( number pitch, number deltaTime = 0 )

Description

Adjust the pitch, alias the speed at which the sound is being played.

This invokes the GM:EntityEmitSound.

Arguments

1 number pitch
The pitch can range from 0-255. Where 100 is the original pitch.
2 number deltaTime = 0
The time to fade from previous to the new pitch.