How to mix your songs
When using more than one player inside the same application, it can be useful, in order to have a good mixing experience, to have the possibility to change the Tempo or Playback rate of a certain song; for this purpose this control provides a set of methods that will help you achieving this task.
First of all you need to load the song using the
LoadSound method: once the song has been loaded you can change the following parameters:
Tempo: the SetTempoPerc method changes the sound to play at faster or slower speed than original, without affecting the sound pitch. The actual tempo percentage can be retrieved using the GetTempoPerc method.
Playback rate: the SetRatePerc method changes both the sound tempo and pitch, as if an LP disc was played at wrong RPM rate. The actual playback rate percentage can be retrieved using the GetRatePerc method.
Pitch: the SetPitch method changes the sound pitch or key, without affecting the sound tempo or speed. The actual pitch can be retrieved using the GetPitch method.
A sample that shows the mentioned features in Visual Basic 6 and Visual C++ 6 can be found inside the following sample installed with the product's setup package:
- TestPlayers