Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents  
 
SetPitch method 
 
Remarks 
 
Changes the sound pitch or key, without affecting the sound tempo or playback rate: after a successful call to this method the duration of the song is not altered. 
This method doesn't work with sounds with more than 2 channels (5.1 or 7.1) or if the EnableMixingFeatures property has been set to BOOL_FALSE. 
 
Further details about songs mixing can be found inside the How to mix your songs section. 
 
 
Syntax 
 
[Visual Basic] 
control.SetPitch
nPlayer as Integer
nPitch as Integer 
 
[C++] 
short control.SetPicth
short nPlayer
short nPitch 
);
 
 
Parameter
Description
 
 
nPlayer
Number representing the zero-based index of the involved player
nPitch
The Pitch variation expressed in semitones; supported values are from -50 to 50. 
Setting this parameter to 0 will set the original sound pitch value.
 
 
Return value 
 
Value
Meaning
 
 
Negative value
An error occurred (see the LastError property for further error details)
enumErrorCodes.ERR_NOERROR (0)
The call was successful.
 
 
 
 
 
 
 
 
 
Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents