SoundChannel:setPitch: Difference between revisions

From GiderosMobile
No edit summary
removed language stuff
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
'''Available since:''' Gideros 2012.09.3<br/>
'''<translate>Available since</translate>:''' Gideros 2012.09.3<br/>
'''Class:''' [[SoundChannel]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/SoundChannel|SoundChannel]]<br/>
 
=== <translate>Description</translate> ===
=== Description ===
<translate><br />
Sets the pitch relative to the pitch of the original sound channel.
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).<br />
<br /></translate>
<source lang="lua">
<source lang="lua">
SoundChannel:setPitch(pitch)
SoundChannel:setPitch(pitch)
</source>
</source>
=== <translate>Parameters</translate> ===
 
'''pitch''': (number) <translate>pitch relative to original (1 < - higher pitch, 1 > 0 lower pitch)</translate> <br/>
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 (1 < - higher pitch, 1 > 0 lower pitch)<br/>


{{SoundChannel}}
{{SoundChannel}}

Revision as of 06:53, 5 September 2021

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 (1 < - higher pitch, 1 > 0 lower pitch)