Skip to content

SoundPitch

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

SoundPitch

SoundPitch:Void sound:Int32, pitch:Int32
Parameter Mode Type Default Description
sound In Int32 required A handle from LoadSound.
pitch In Int32 required

Description

Sets the playback frequency that channels of this sound start with, in hertz. Channels that are already playing keep theirs: use ChannelPitch for those.

Differences

  • A debug build (-d) stops the program when the sound is 0 (a sound that failed to load) or does not exist, other builds ignore the command, see Debug handle checks.

Examples

; MakeBeep writes beep.wav, see the LoadSound example for the code.
Local snd = LoadSound("beep.wav")
SoundPitch snd, 44100
PlaySound snd
Delay 400
SoundPitch snd, 11025
PlaySound snd
Delay 1000

Related Commands

ChannelPitch, FreeSound, Load3DSound, LoadSound, LoopSound, PlaySound, SoundPan, SoundVolume

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally