Source:getPitch

Edit

Returns the pitch of the Source.

pitch = Source:getPitch()

Arguments

None

Returns

NameTypeDescription
pitchnumber The pitch.

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