Garry's Mod Wiki

CSoundPatch:ChangePitch

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

Description

Adjust the pitch, also known as the speed at which the sound is being played.

Appears to only work while the sound is being played. See also CSoundPatch:PlayEx.

This invokes 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.