SoundChannel:setPitch

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2012.09.3
Class: SoundChannel

Description

Sets the pitch relative to the pitch of the original sound channel.

SoundChannel:setPitch(pitch)

Default pitch is 1.

Setting pitch as 0.5 will make the pitch lower.

Setting pitch as 1.5 will make the pitch higher.

Note: you cannot set the pitch of a background music (mp3)

Parameters

pitch: (number) pitch relative to original (0 < lower pitch < 1 < higher pitch)