Difference between revisions of "SoundChannel:setPitch"

From GiderosMobile
Line 16: Line 16:
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''pitch''': (number) <translate>pitch relative to original (1 < - higher pitch, 1 > 0 lower pitch)</translate> <br/>
 
'''pitch''': (number) <translate>pitch relative to original (1 < - higher pitch, 1 > 0 lower pitch)</translate> <br/>
 +
 +
{{SoundChannel}}

Revision as of 23:53, 3 December 2019


Available since: Gideros 2012.09.3
Class: SoundChannel

Description


Sets the pitch relative to the pitch of the original sound channel. Default pitch is 1. Setting pitch as 0.5 will make the pitch lower Setting pitch as 1.5 will make the pitch higher You cannot set the pitch of a background music (mp3).

 SoundChannel:setPitch(pitch)

Parameters

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