Se Connecter:     


Forum: VirtualDJ Plugins

Sujet: Position of beats in a song

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Hi,

How can we know where the beats are in a song? I mean: i am working on a plugin, but I want my effect to be synchronized with the beats. It's already using the song's BPM, but I want it to start it's cycle *during* a beat.

Thanks for the help

macourteau
 

Posté Wed 21 Apr 04 @ 2:56 am
macourteau:

You can use BPM Phase to know where the first beat is in the song.

After this, and thanks to the song's BPM you already know, you can find all the beats.

I hope I am understandable, if not, feel free to ask me more about this.

Kaléo.
 

You mean that SongPhase returns the position (in samples) of the first beat?
 

Thanks. Here's how I got it to work:
in the "OnStart" function:

StartPos = SongPhase;
while(StartPos < pos)
StartPos += SongBpm?SongBpm:22050;

and then my algorithm calculates in what phase it should be according to the beats.
 



(Les anciens sujets et forums sont automatiquement fermés)