FSOUND_SetFrequency is all that you really need.
If you search some you can find how to get the default frequency of a stream/mp3. (For almost every mp3, this is 44100)
If you know the bpm of the song when it’s played normal, you can calculate how fast it has to be.
For example : The song at default frequency is 140 bpm, and you want it at 142 bpm, this means 1.42% faster, or 1.0142 times the original frequency (142/140=1.0142…)
So use setfrequency with 44100 * 1.0142
If you want to get the bpm of a song, there are only some ways to know :
1) you know how many bpm’s a song has, maybe because it’s your own song
2) you create/search some program to tap the beats that will show you the bpm’s
4) you create/search a program that will calculate the bpm’s automatically, which is quite difficult and won’t work for all songs
(check my webpage if you want to use my ocx to detect bpm’s)
- Adion answered 15 years ago
Please login first to submit.