Source:setPitch

Edit

Sets the pitch of the Source.

Source:setPitch(pitch)

Arguments

NameTypeDescription
pitchnumber The new pitch.

Returns

Nothing

Notes

The default pitch is 1. Every doubling/halving of the pitch will raise/lower the pitch by one octave. Changing the pitch also changes the playback speed.

See also