libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::SetPitch Method

Change pitch without changing tempo.

C++
virtual __stdcall int SetPitch(unsigned int nPitch) = 0;
Parameters 
Description 
unsigned int nPitch 
New pitch value. Normal pitch = 100, smaller values represent lower pitch, larger values represent higher pitch.
Note: This value can't be 0. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Pitch value 100 indicates normal pitch and sound is not changed at all. 

To lower pitch, set pitch to value smaller than 100. This will lower pitch without changing tempo. But this value can't be 0 because you can't play something by not playing at all with pitch 0 :-) 

To raise pitch, set pitch to value larger than 100. This will raise pitch without changing tempo.

Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr