Difference between revisions of "SoundChannel:setPitch"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.09.3<br/>
 
'''Available since:''' Gideros 2012.09.3<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<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.  
 
Default pitch is 1.  
Line 8: Line 8:
 
Setting pitch as 1.5 will make the pitch higher
 
Setting pitch as 1.5 will make the pitch higher
 
You cannot set the pitch of a background music (mp3).<br />
 
You cannot set the pitch of a background music (mp3).<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  SoundChannel:setPitch(pitch)
 
  SoundChannel:setPitch(pitch)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''pitch''': (number) pitch relative to original (1 < - higher pitch, 1 > 0 lower pitch) <br/>
+
'''pitch''': (number) <translate>pitch relative to original (1 < - higher pitch, 1 > 0 lower pitch)</translate> <br/>

Revision as of 14:32, 23 August 2018

Available since: Gideros 2012.09.3

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)